-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (38 loc) · 1.55 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
cmake_minimum_required(VERSION 3.12)
project(sspmodules VERSION 1.3.3)
find_package(daq-cmake REQUIRED)
daq_setup_environment()
# ers: for exceptions and normal output
# Boost unit_test_framework: for the unit tests
# Boost program_options: to allow command line options with descriptions/default values
find_package(appfwk REQUIRED)
find_package(confmodel REQUIRED)
find_package(logging REQUIRED)
find_package(ers REQUIRED)
daq_oks_codegen(sspmodules.schema.xml NAMESPACE dunedaq::sspmodules::dal DALDIR dal DEP_PKGS confmodel)
set(DUNEDAQ_DEPENDENCIES appfwk::appfwk confmodel::confmodel)
# Provide override functionality for SSP dependencies
#option(WITH_FTD2XX_AS_PACKAGE "SSP external (ftd2xx) as a dunedaq package" OFF)
#if(WITH_FTD2XX_AS_PACKAGE)
# set(SSP_DEPENDENCIES
# ftd2xx::ftd2xx
# )
#else()
# set(SSP_DEPENDENCIES
# $ENV{FTD2XX_LIB}/libftd2xx.so
# )
#endif()
##############################################################################
# Note that when the ers library is linked in, it uses a "::" because
# it's in an external package, not a local CMake target. The semantics
# are <namespace>::<shared library / executable>
daq_add_library(anlBoard/*.cxx SSPLEDCalibWrapper.cpp LINK_LIBRARIES ${SSP_DEPENDENCIES} ${DUNEDAQ_DEPENDENCIES})
#if(WITH_FTD2XX_AS_PACKAGE)
# All good
#else()
# Hack target
# target_include_directories(sspmodules PUBLIC $ENV{FTD2XX_INC})
#endif()
##############################################################################
daq_add_plugin(SSPLEDCalibModule duneDAQModule LINK_LIBRARIES sspmodules)
daq_install()