-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·41 lines (28 loc) · 1.49 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
cmake_minimum_required(VERSION 3.12)
project(utilities VERSION 3.2.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(nlohmann_json REQUIRED)
find_package(logging REQUIRED)
find_package(Boost COMPONENTS iostreams unit_test_framework program_options REQUIRED)
find_package(ers REQUIRED)
##############################################################################
# Schema
#daq_codegen(*.jsonnet TEST TEMPLATES Structs.hpp.j2 Nljs.hpp.j2)
##############################################################################
# Main library
# We don't have a real library, but we want to create a target for
# dependents to be able to depend on
daq_add_library(*.cpp LINK_LIBRARIES nlohmann_json::nlohmann_json logging::logging resolv atomic)
##############################################################################
# Test applications
##############################################################################
# Unit tests
daq_add_unit_test(Resolver_test LINK_LIBRARIES logging::logging utilities)
daq_add_unit_test(ReusableThread_test LINK_LIBRARIES logging::logging utilities)
daq_add_unit_test(WorkerThread_test LINK_LIBRARIES logging::logging utilities)
daq_add_unit_test(NamedObject_test )
# daq_add_unit_test(TimestampEstimatorSystem_test LINK_LIBRARIES utilities)
daq_add_unit_test(TimestampEstimator_test LINK_LIBRARIES utilities)
daq_add_application(resolve_hostname resolve_hostname.cpp TEST LINK_LIBRARIES utilities)
daq_install()