Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /acts/Examples/Detectors/DD4hepDetector/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_library(
0002   ActsExamplesDetectorDD4hep SHARED
0003   src/DD4hepDetector.cpp
0004   src/DD4hepDetectorHelper.cpp
0005   src/DD4hepGeometryService.cpp
0006   src/DetUtils.cpp)
0007 
0008 
0009 target_include_directories(
0010   ActsExamplesDetectorDD4hep
0011   PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
0012 target_link_libraries(
0013   ActsExamplesDetectorDD4hep
0014   PUBLIC
0015     ActsCore ActsPluginDD4hep
0016     ActsExamplesFramework
0017     ROOT::Geom ROOT::GenVector)
0018 
0019 if(${DD4hep_VERSION} VERSION_LESS 1.11)
0020   target_include_directories(ActsExamplesDetectorDD4hep PUBLIC ${DD4hep_INCLUDE_DIRS})
0021   target_link_libraries(ActsExamplesDetectorDD4hep PUBLIC ${DD4hep_DDCORE_LIBRARY})
0022 else()
0023   target_link_libraries(ActsExamplesDetectorDD4hep PUBLIC DD4hep::DDCore)
0024 endif()
0025 
0026 # not sure why this needs to be set, but dd4hep fails to compile otherwise
0027 set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
0028 set_target_properties(ActsExamplesDetectorDD4hep PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
0029 dd4hep_set_version(ActsExamplesDetectorDD4hep MAJOR 1 MINOR 0 PATCH 0)
0030 dd4hep_generate_rootmap(ActsExamplesDetectorDD4hep)
0031 
0032 install(
0033   TARGETS ActsExamplesDetectorDD4hep
0034   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})