-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (35 loc) · 1.27 KB
/
CMakeLists.txt
File metadata and controls
44 lines (35 loc) · 1.27 KB
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
# ======================================================================
# geant4reweight main build file
#
# cd .../path/to/build/directory
# source .../path/to/geant4reweight/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)
find_package(cetmodules REQUIRED)
project(geant4reweight VERSION 01.21.02)
include(CetCMakeEnv)
cet_cmake_env()
cet_set_compiler_flags(DIAGS CAUTIOUS
WERROR
NO_UNDEFINED
EXTRA_FLAGS -pedantic -Wno-unused-local-typedefs
)
cet_report_compiler_flags(REPORT_THRESHOLD VERBOSE)
option(WANT_G4DDCrossSection "Build the optional G4DDCrossSection application" NO)
find_package(Geant4 REQUIRED EXPORT)
find_package(ROOT COMPONENTS Gpad Hist MathCore Matrix RIO Tree REQUIRED EXPORT)
find_package(cetlib REQUIRED EXPORT)
find_package(cetlib_except REQUIRED EXPORT)
find_package(fhiclcpp REQUIRED EXPORT)
# ADD SOURCE CODE SUBDIRECTORIES HERE
add_subdirectory(geant4reweight)
# tests
add_subdirectory(test)
cet_cmake_config()