-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathCMakeLists.txt
118 lines (101 loc) · 3.47 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# ======================================================================
# icaruscode main build file
#
# cd .../path/to/build/directory
# source .../path/to/larsoft/ups/setup_for_development <-d|-p>
# cmake [-DCMAKE_INSTALL_PREFIX=/install/path]
# -DCMAKE_BUILD_TYPE=$CETPKG_TYPE
# $CETPKG_SOURCE
# make
# make test
# make install
# make package (builds distribution tarfile)
# ======================================================================
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
# cmake_policy(VERSION 3.19)
find_package(cetmodules 3.24.01 REQUIRED)
project(icaruscode VERSION 09.92.00 LANGUAGES CXX)
message(STATUS
"\n-- ============================================================================="
"\n-- === *** Start of configuration of ${PROJECT_NAME} ***"
"\n-- ===")
# cetbuildtools contains our cmake modules
#find_package(cetbuildtools REQUIRED)
#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 CAUTIOUS
WERROR
NO_UNDEFINED
EXTRA_FLAGS -pedantic
$<$<CXX_COMPILER_ID:GNU>:-Wno-maybe-uninitialized>
$<$<CXX_COMPILER_ID:Clang>:-Wno-return-stack-address>
)
cet_report_compiler_flags(REPORT_THRESHOLD VERBOSE)
#these are minimum required versions,not thea ctual product versions
find_package(larsoft REQUIRED )
find_package(libwda REQUIRED )
find_package(PostgreSQL REQUIRED )
find_package(Eigen3 REQUIRED )
find_package(ifbeam REQUIRED )
find_package(ifdhc REQUIRED )
find_package(ifdh_art REQUIRED )
find_package(Range-v3 REQUIRED )
find_package(sbnobj REQUIRED )
find_package(icarus_signal_processing REQUIRED )
find_package(icarusalg REQUIRED )
find_package(icarusutil REQUIRED )
find_package(icarus_data REQUIRED )
find_package(artdaq_core REQUIRED )
find_package(larcoreobj REQUIRED )
find_package(larcorealg REQUIRED )
find_package(lardataobj REQUIRED )
find_package(lardataalg REQUIRED )
find_package(larcore REQUIRED )
find_package(lardata REQUIRED )
find_package(larsim REQUIRED )
find_package(larevt REQUIRED )
find_package(larreco REQUIRED )
find_package(larana REQUIRED )
find_package(larpandora REQUIRED )
find_package(larpandoracontent REQUIRED )
find_package(nusimdata REQUIRED )
find_package(nurandom REQUIRED )
find_package(nug4 REQUIRED )
find_package(art REQUIRED )
find_package(canvas REQUIRED )
find_package(messagefacility REQUIRED )
find_package(FFTW3 REQUIRED )
find_package(ifdh_art REQUIRED )
find_package(ROOT REQUIRED )
find_package(Boost COMPONENTS system program_options REQUIRED)
find_package(PandoraSDK REQUIRED )
find_package(PandoraMonitoring REQUIRED )
find_package(SQLite3 REQUIRED )
find_package(artdaq_core REQUIRED )
find_package(sbndaq_artdaq_core REQUIRED )
find_package(TRACE REQUIRED )
find_package(Microsoft.GSL HINTS $ENV{GUIDELINE_SL_DIR} REQUIRED EXPORT)
find_package(FFTW3f REQUIRED )
find_package(FFTW3q REQUIRED )
find_package(FFTW3l REQUIRED )
# macros for dictionary and simple_plugin
include(ArtDictionary)
include(ArtMake)
include(BuildPlugins)
# ADD SOURCE CODE SUBDIRECTORIES HERE
add_subdirectory(icaruscode)
add_subdirectory(scripts)
add_subdirectory(doc)
# subdirectory for test code
add_subdirectory(test)
# Top level fcl files.
add_subdirectory(fcl)
message(STATUS
"\n-- ==="
"\n-- === *** End of configuration of ${PROJECT_NAME} ***"
"\n-- ============================================================================="
"\n-- SQLITE3: ${SQLITE3}"
"\n-- "
)
cet_cmake_config()