-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (35 loc) · 2.24 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This is a skeleton CMakeLists.txt file, auto-generated on
# Fri May 5 13:59:27 CEST 2023. The developer(s) of this package should delete
# this comment as well as adding dependent targets, packages,
# etc. specific to the package. For details on how to write a package,
# please see
# https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/
cmake_minimum_required(VERSION 3.12)
project(hermesmodules VERSION 2.2.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(fmt REQUIRED)
find_package(uhal REQUIRED)
find_package(ers REQUIRED)
find_package(appfwk REQUIRED)
find_package(opmonlib REQUIRED)
find_package(Boost COMPONENTS unit_test_framework REQUIRED)
find_package(confmodel REQUIRED)
find_package(appmodel REQUIRED)
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_codegen
daq_protobuf_codegen( opmon/*.proto )
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_library
daq_add_library(*.cpp LINK_LIBRARIES confmodel::confmodel appmodel::appmodel fmt::fmt ers::ers uhal::uhal)
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_python_bindings
daq_add_python_bindings(*.cpp LINK_LIBRARIES ${PROJECT_NAME} ) # Any additional libraries to link in beyond the main library not yet determined
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_plugin
daq_add_plugin(HermesModule duneDAQModule LINK_LIBRARIES appfwk::appfwk ${PROJECT_NAME}) # Replace appfwk library with a more specific library when appropriate
##############################################################################
# See https://dune-daq-sw.readthedocs.io/en/latest/packages/daq-cmake/#daq_add_unit_test
#daq_add_unit_test(Placeholder_test LINK_LIBRARIES ${PROJECT_NAME}) # Placeholder_test should be replaced with real unit tests
##############################################################################
daq_install()