-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (30 loc) · 1.53 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
36
37
38
39
40
41
42
43
44
45
46
47
48
cmake_minimum_required(VERSION 3.12)
project(confmodel VERSION 2.0.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(okssystem REQUIRED)
find_package(oksdalgen REQUIRED)
find_package(ers REQUIRED)
find_package(logging REQUIRED)
find_package(conffwk REQUIRED)
find_package(nlohmann_json REQUIRED)
#find_package(Boost COMPONENTS unit_test_framework REQUIRED)
##############################################################################
include_directories(${CMAKE_BINARY_DIR}/confmodel)
daq_oks_codegen(dunedaq.schema.xml)
daq_add_library(dalMethods.cpp
test_circular_dependency.cpp disabled-components.cpp
LINK_LIBRARIES conffwk::conffwk okssystem::okssystem
logging::logging nlohmann_json::nlohmann_json)
daq_add_application(listApps list_apps.cxx
LINK_LIBRARIES confmodel conffwk::conffwk)
daq_add_application(disable_test disable_test.cxx TEST
LINK_LIBRARIES confmodel conffwk::conffwk logging::logging)
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_python_bindings
daq_add_python_bindings(*.cpp LINK_LIBRARIES confmodel)
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_unit_test
#daq_add_unit_test(Placeholder_test LINK_LIBRARIES) # Placeholder_test should be replaced with real unit tests
##############################################################################
daq_install()