Skip to content
Snippets Groups Projects
Commit 6c739af0 authored by Whitney Armstrong's avatar Whitney Armstrong
Browse files

new file: CMakeLists.txt

parent 81e3e66c
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
find_package( DD4hep REQUIRED COMPONENTS DDCore DDG4 )
#find_package(Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep )
#-----------------------------------------------------------------------------------
set(a_lib_name my_detector)
#dd4hep_package (${a_lib_name} MAJOR 0 MINOR 0 PATCH 1
# USES [ROOT REQUIRED COMPONENTS Geom GenVector]
# [DD4hep REQUIRED COMPONENTS DDCore DDRec]
# OPTIONAL XERCESC
# INCLUDE_DIRS include
# )
dd4hep_add_plugin(${a_lib_name} SOURCES src/*.cpp
#USES ActsCore ActsPluginDD4hep
)
target_link_libraries(${a_lib_name}
PUBLIC DD4hep::DDCore DD4hep::DDRec
)
#-----------------------------------------------------------------------------------
install(DIRECTORY compact/
DESTINATION share/${PROJECT_NAME}/${a_lib_name}
FILES_MATCHING PATTERN "*.xml"
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment