-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (42 loc) · 1.42 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
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
# CMP0074: find_package() uses <PackageName>_ROOT variables
cmake_policy(SET CMP0074 NEW)
PROJECT(solid
VERSION 0.0.1
LANGUAGES CXX
DESCRIPTION "SoLID in ATHENA framework"
)
set(CMAKE_CXX_STANDARD 17)
find_package( DD4hep REQUIRED COMPONENTS DDCore DDG4)
find_package(Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep )
find_package(fmt)
#find_library(FMT_LIBRARY fmt)
#-----------------------------------------------------------------------------------
set(a_lib_name solid_dd4hep)
dd4hep_configure_output()
dd4hep_set_compiler_flags()
dd4hep_add_plugin(${a_lib_name} SOURCES
src/*.cpp
USES ROOT::Core ROOT::Gdml
)
target_link_libraries(${a_lib_name}
PUBLIC DD4hep::DDCore DD4hep::DDRec fmt::fmt
)
#-----------------------------------------------------------------------------------
# Install the detector description files.
install(DIRECTORY compact/
DESTINATION share/${PROJECT_NAME}/${a_lib_name}
FILES_MATCHING PATTERN "*.xml"
)
install(DIRECTORY compact/
DESTINATION share/${PROJECT_NAME}/compact
FILES_MATCHING PATTERN "*.xml"
)
install(FILES solid.xml
DESTINATION share/${PROJECT_NAME}/
)
#-----------------------------------------------------------------------------------
# Install the detector calibration files.
# install(DIRECTORY calibrations/
# DESTINATION share/${PROJECT_NAME}/calibrations
# )