-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
43 lines (30 loc) · 1.61 KB
/
CMakeLists.txt
File metadata and controls
43 lines (30 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.12)
project(tpglibs VERSION 1.0.5)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(fmt REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(detdataformats REQUIRED)
find_package(fddetdataformats REQUIRED)
find_package(trgdataformats REQUIRED)
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
##############################################################################
set(FDREADOUTLIBS_USE_INTRINSICS ON)
if(${FDREADOUTLIBS_USE_INTRINSICS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2")
endif()
##############################################################################
daq_add_library( *.cpp LINK_LIBRARIES nlohmann_json::nlohmann_json detdataformats::detdataformats fddetdataformats::fddetdataformats trgdataformats::trgdataformats fmt::fmt )
daq_add_python_bindings(*.cpp)
daq_add_unit_test(avx_factory_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(avx_generator_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(avx_pipeline_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(avx_processors_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(ProcessorInternalStateNameRegistry_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(ProcessorInternalStateBufferManager_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(avx_processors_internal_state_collect_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(processor_state_registrate_collect_test LINK_LIBRARIES tpglibs)
daq_add_unit_test(binary_signal_reader_test LINK_LIBRARIES tpglibs)
# Add test application
daq_add_application(tpglibs_processor_test test_tpg_processor_app.cxx TEST LINK_LIBRARIES tpglibs)
daq_install()