-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (26 loc) · 1.42 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.12)
project(ers VERSION 1.5.2)
find_package(daq-cmake REQUIRED )
daq_setup_environment()
find_package(Boost COMPONENTS unit_test_framework program_options regex REQUIRED)
find_package(Protobuf REQUIRED)
find_package(absl REQUIRED)
daq_protobuf_codegen( *.proto )
daq_add_library(*.cpp LINK_LIBRARIES Boost::regex pthread dl ${PROTOBUF_LIBRARY} absl::status)
daq_add_python_bindings(*.cpp LINK_LIBRARIES ${PROJECT_NAME})
daq_add_application( ers_config ers_config.cxx LINK_LIBRARIES ers )
daq_add_plugin( AbortStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( ExitStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( FilterStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( GlobalLockStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( LockStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( NullStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( RFilterStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( StandardStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( ThrottleStream ersStream LINK_LIBRARIES ers )
daq_add_plugin( ThrowStream ersStream LINK_LIBRARIES ers )
daq_add_application( ers_receiver ers_receiver.cxx TEST LINK_LIBRARIES ers )
daq_add_application( ers_test ers_test.cxx TEST LINK_LIBRARIES ers )
daq_add_application( ers_inheritance ers_inheritance.cxx TEST LINK_LIBRARIES ers )
daq_add_application( ers_schema_test ers_schema_test.cxx TEST LINK_LIBRARIES ers )
daq_install()