This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (30 loc) · 1.57 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
cmake_minimum_required(VERSION 3.12)
project(dataformats VERSION 3.1.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
#find_package(cetlib REQUIRED)
find_package(ers REQUIRED)
find_package(Boost 1.70.0 COMPONENTS unit_test_framework REQUIRED)
find_package(logging REQUIRED)
set(RAWDATA_DEPENDENCIES ers::ers logging::logging)
##############################################################################
# Main library
daq_add_library(*.cpp LINK_LIBRARIES ${RAWDATA_DEPENDENCIES})
##############################################################################
# Plugins
#daq_add_plugin(... ... LINK_LIBRARIES daq-rawdata)
##############################################################################
# Integration tests
##############################################################################
# Unit Tests
daq_add_unit_test(ComponentRequest_test LINK_LIBRARIES dataformats)
daq_add_unit_test(Fragment_test LINK_LIBRARIES dataformats)
daq_add_unit_test(FragmentHeader_test LINK_LIBRARIES dataformats)
daq_add_unit_test(GeoID_test LINK_LIBRARIES dataformats)
daq_add_unit_test(TriggerRecord_test LINK_LIBRARIES dataformats)
daq_add_unit_test(TriggerRecordHeader_test LINK_LIBRARIES dataformats)
daq_add_unit_test(TriggerRecordHeaderData_test LINK_LIBRARIES dataformats)
daq_add_unit_test(WIBFrame_test LINK_LIBRARIES dataformats)
daq_add_unit_test(WIB2Frame_test LINK_LIBRARIES dataformats)
##############################################################################
daq_install()