-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
71 lines (63 loc) · 1.94 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
cmake_minimum_required(VERSION 3.17)
project(actsTest)
# soft installation path
set(SW $ENV{HOME}/mpd/sw/slc9_x86-64)
set(ACTS_SRC ${SW}/ACTS/latest)
set(Boost_DIR ${SW}/Boost/latest/lib/cmake/Boost-1.83.0)
set(Acts_DIR ${SW}/ACTS/latest/lib/cmake/Acts)
set(DD4hep_DIR ${SW}/DD4hep/latest/cmake)
#set(Geant4_DIR ${SW}/GEANT4/latest/lib/cmake/Geant4)
set(ROOT_DIR ${SW}/ROOT/latest/cmake)
set(nlohmann_json_DIR ${SW}/nlohmann_json/latest/share/cmake/nlohmann_json)
set(LCIO_DIR ${SW}/LCIO/latest/lib/cmake/LCIO)
set(SIO_DIR ${SW}/LCIO/latest/lib/cmake/SIO)
set(EDM4HEP_DIR ${SW}/EDM4hep/latest/lib/cmake/EDM4HEP)
set(podio_DIR ${SW}/podio/latest/lib/cmake/podio)
find_package(Geant4 REQUIRED vis_all ui_all)
include(${Geant4_USE_FILE})
find_package(Eigen3 REQUIRED HINTS "${SW}/Eigen3/latest")
find_package(Acts REQUIRED)
include_directories(
$ENV{PWD}
${SW}/TBB/latest/include
${SW}/nlohmann_json/latest/include
${SW}/ROOT/latest/include
${SW}/GEANT4/latest/include
)
link_directories(
${SW}/TBB/latest/lib
${SW}/ACTS/latest/lib
${SW}/ROOT/latest/lib
${SW}/GEANT4/latest/lib
)
# main exec
add_executable(${PROJECT_NAME} main.cpp tracker.h tracker_config.h)
target_link_libraries(${PROJECT_NAME} PUBLIC
ActsCore
ActsPluginGeant4
ActsExamplesFramework
ActsExamplesGenerators
ActsExamplesDetectorTelescope
ActsExamplesFatras
ActsPluginFpeMonitoring
ActsExamplesMagneticField
ActsExamplesDigitization
ActsExamplesIoJson
ActsExamplesIoRoot
ActsExamplesIoCsv
ActsExamplesTrackFinding
ActsExamplesTrackFitting
ActsExamplesTruthTracking
tbb
Core
Tree
${Geant4_LIBRARIES}
)
# copy run macros
set(SCRIPTS
)
foreach (_script ${SCRIPTS})
configure_file(${_script}
${PROJECT_BINARY_DIR}/${_script}
COPYONLY)
endforeach ()