-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
64 lines (50 loc) · 1.7 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
57
58
59
60
61
62
63
64
# ======================================================================
# main build file
#
# cd .../path/to/build/directory
# source ../path/to/dune-raw-data/ups/setup_for_development
# buildtool
# ======================================================================
# use cmake 3.19 or later
cmake_minimum_required (VERSION 3.20 FATAL_ERROR)
# cmake_policy(VERSION 3.19)
find_package(cetmodules REQUIRED)
project(dunepdlegacy VERSION 1.01.05 LANGUAGES CXX)
set(dunepdlegacy_FW_DIR "files")
# cetbuildtools contains our cmake modules
list(APPEND CMAKE_MODULE_PATH $ENV{CANVAS_ROOT_IO_DIR}/Modules $ENV{ART_DIR}/Modules)
include(CetCMakeEnv)
cet_cmake_env()
cet_set_compiler_flags(DIAGS VIGILANT
# WERROR
# NO_UNDEFINED
EXTRA_FLAGS -pedantic
EXTRA_DEFINITIONS -D_GLIBCXX_USE_NANOSLEEP #-march=native
)
cet_report_compiler_flags()
find_package(nufinder REQUIRED)
# these are minimum required versions, not the actual product versions
find_package(Boost REQUIRED COMPONENTS system) # Needs to be first to cover for a missing transitive
# dependency from artdaq_core.
find_package( artdaq_core REQUIRED )
find_package( art REQUIRED )
find_package( cetlib REQUIRED )
find_package( gallery REQUIRED )
find_package( messagefacility REQUIRED )
# have to make sure cmake doesn't select the system libraries
# define libsigc
cet_find_library( SIGC NAMES sigc-2.0 PATHS ENV LIBSIGCPP_LIB NO_DEFAULT_PATH )
# macros for art_dictionary and simple_plugin
include(ArtDictionary)
include(ArtMake)
include(BuildPlugins)
include(CetTest)
# source
add_subdirectory(dunepdlegacy)
# test
add_subdirectory(test)
# run
add_subdirectory(run)
# ups - table and config files
# packaging utility
cet_cmake_config()