forked from MuonColliderSoft/ACTSTracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (50 loc) · 1.91 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
########################################################
# cmake file for building Marlin ACTSTracking Package
# @author Karol Krizka
CMAKE_MINIMUM_REQUIRED(VERSION 3.15 FATAL_ERROR)
########################################################
# project name
PROJECT( ACTSTracking )
# project version
SET( ${PROJECT_NAME}_VERSION_MAJOR 1 )
SET( ${PROJECT_NAME}_VERSION_MINOR 1 )
SET( ${PROJECT_NAME}_VERSION_PATCH 0 )
### DEPENDENCIES ############################################################
FIND_PACKAGE( ILCUTIL REQUIRED COMPONENTS ILCSOFT_CMAKE_MODULES )
FIND_PACKAGE( Marlin 1.0 REQUIRED ) # minimum required Marlin version
FIND_PACKAGE( DD4hep REQUIRED COMPONENTS DDCore )
FIND_PACKAGE( ROOT REQUIRED)
FIND_PACKAGE( Acts REQUIRED COMPONENTS Core PluginJson PluginTGeo )
INCLUDE(GNUInstallDirs)
### DOCUMENTATION ###########################################################
OPTION( INSTALL_DOC "Set to OFF to skip build/install Documentation" OFF )
IF( INSTALL_DOC AND EXISTS "${PROJECT_SOURCE_DIR}/doc/CMakeLists.txt" )
ADD_SUBDIRECTORY( ./doc )
ENDIF()
### DATA ###########################################################
ADD_SUBDIRECTORY(data)
ADD_SUBDIRECTORY(example)
### LIBRARY #################################################################
# sources
CONFIGURE_FILE(src/config.h.in config.h)
ADD_LIBRARY(ACTSTracking SHARED
./src/ACTSProcBase.cxx
./src/ACTSTruthTrackingProc.cxx
./src/ACTSTruthCKFTrackingProc.cxx
./src/ACTSSeededCKFTrackingProc.cxx
./src/ACTSDuplicateRemoval.cxx
./src/TrackTruthProc.cxx
./src/GeometryIdSelector.cxx
./src/GeometryIdMappingTool.cxx
./src/Helpers.cxx
)
TARGET_INCLUDE_DIRECTORIES(ACTSTracking
PRIVATE
./ACTSTracking
${CMAKE_CURRENT_BINARY_DIR}
${Marlin_INCLUDE_DIRS}
${ROOT_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(ACTSTracking
${ROOT_LIBRARIES} DD4hep::DDCore
ActsCore ActsPluginTGeo ActsPluginJson)
INSTALL( TARGETS ACTSTracking DESTINATION lib )