-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCMakeLists.txt
44 lines (36 loc) · 1.24 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
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
cmake_policy(SET CMP0074 NEW)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project(dual-readout)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# Use GNU-style hierarchy for installing build products
include(GNUInstallDirs)
#----------------------------------------------------------------------------
# Find Geant4 package, activating all available UI and Vis drivers by default
# You can set WITH_GEANT4_UIVIS to OFF via the command line or ccmake/cmake-gui
# to build a batch mode only executable
#
option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" OFF)
if(WITH_GEANT4_UIVIS)
find_package(Geant4 REQUIRED ui_all vis_all)
else()
find_package(Geant4 REQUIRED)
endif()
find_package ( DD4hep REQUIRED )
dd4hep_set_compiler_flags()
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
find_package(ROOT REQUIRED)
find_package(podio REQUIRED HINTS $ENV{PODIO})
find_package(Gaudi REQUIRED)
find_package(EDM4HEP)
find_package(k4FWCore REQUIRED)
find_package(sipm REQUIRED)
set(BOOST_ROOT "$ENV{BOOST_ROOT}")
add_subdirectory(Detector)
add_subdirectory(DRsim)
add_subdirectory(DRdigi)
add_subdirectory(DRreco)
add_subdirectory(analysis)