-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (25 loc) · 1.31 KB
/
CMakeLists.txt
File metadata and controls
39 lines (25 loc) · 1.31 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
cmake_minimum_required(VERSION 3.12)
project(cmdlib VERSION 1.3.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(cetlib REQUIRED)
find_package(TBB REQUIRED) # TBB should be capitalized here
find_package(nlohmann_json REQUIRED)
find_package(logging REQUIRED)
find_package(ers REQUIRED)
set(CMDLIB_DEPENDENCIES ${CETLIB} ${CETLIB_EXCEPT} TBB::tbb logging::logging ers::ers nlohmann_json::nlohmann_json)
##############################################################################
# Main library
daq_add_library(CommandFacility.cpp LINK_LIBRARIES ${CMDLIB_DEPENDENCIES})
##############################################################################
# Plugins
daq_add_plugin(stdinCommandFacility duneCommandFacility LINK_LIBRARIES cmdlib)
##############################################################################
# Integration tests
daq_add_plugin(dummyCommandFacility duneCommandFacility TEST LINK_LIBRARIES cmdlib)
daq_add_application(cmdlib_test_dummy_app test_dummy_app.cxx TEST LINK_LIBRARIES cmdlib)
daq_add_application(cmdlib_test_stdin_app test_stdin_app.cxx TEST LINK_LIBRARIES cmdlib)
##############################################################################
# No unit tests written
##############################################################################
daq_install()