-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (21 loc) · 1.01 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
cmake_minimum_required(VERSION 3.12)
project(opmonlib VERSION 0.0.0)
find_package(daq-buildtools 1.2.1 REQUIRED)
daq_setup_environment()
find_package(cetlib REQUIRED)
find_package(ers REQUIRED)
find_package(nlohmann_json REQUIRED)
set(OPMONLIB_DEPENDENCIES ${CETLIB} ${CETLIB_EXCEPT} ers::ers nlohmann_json::nlohmann_json)
##############################################################################
# Main library
daq_add_library(*.cpp LINK_LIBRARIES ${OPMONLIB_DEPENDENCIES})
##############################################################################
# Plugins
daq_add_plugin(fileMetricPublish duneMetricPublish LINK_LIBRARIES opmonlib)
##############################################################################
# Integration tests
daq_add_application(opmonlib_test opmonlib_test.cpp TEST LINK_LIBRARIES opmonlib)
##############################################################################
# No unit tests written
##############################################################################
daq_install()