-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (46 loc) · 1.72 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
cmake_minimum_required(VERSION 3.12)
project(ndreadoutlibs VERSION 1.4.0)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
find_package(ers REQUIRED)
find_package(appfwk REQUIRED)
find_package(logging REQUIRED)
find_package(opmonlib REQUIRED)
find_package(readoutlibs REQUIRED)
find_package(daqdataformats REQUIRED)
find_package(detdataformats REQUIRED)
find_package(nddetdataformats REQUIRED)
find_package(folly REQUIRED)
find_package(Boost COMPONENTS iostreams REQUIRED)
set(BOOST_LIBS Boost::iostreams ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_LIBRARIES})
#daq_codegen( readoutconfig.jsonnet datalinkhandler.jsonnet datarecorder.jsonnet sourceemulatorconfig.jsonnet TEMPLATES Structs.hpp.j2 Nljs.hpp.j2 )
#daq_codegen( *info.jsonnet DEP_PKGS opmonlib TEMPLATES opmonlib/InfoStructs.hpp.j2 opmonlib/InfoNljs.hpp.j2 )
##############################################################################
# Dependency sets
set(NDREADOUTLIBS_DEPENDENCIES
#tools
Folly::folly
ers::ers
logging::logging
#dunedaq
appfwk::appfwk
readoutlibs::readoutlibs
opmonlib::opmonlib
daqdataformats::daqdataformats
detdataformats::detdataformats
nddetdataformats::nddetdataformats
)
##############################################################################
# Main library
daq_add_library(
LINK_LIBRARIES ${NDREADOUTLIBS_DEPENDENCIES}
)
##############################################################################
# Plugins
###############################################################################
# Integration tests
###############################################################################
# Unit Tests
##############################################################################
# Installation
daq_install()