Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /acts/Plugins/DD4hep/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include(FetchContent)
0002 
0003 add_library(
0004   ActsPluginDD4hep SHARED
0005   src/ConvertDD4hepDetector.cpp
0006   src/DD4hepBlueprintFactory.cpp
0007   src/DD4hepBinningHelpers.cpp
0008   src/DD4hepDetectorStructure.cpp
0009   src/DD4hepMaterialHelpers.cpp
0010   src/DD4hepDetectorElement.cpp
0011   src/DD4hepDetectorSurfaceFactory.cpp
0012   src/DD4hepLayerBuilder.cpp
0013   src/DD4hepLayerStructure.cpp
0014   src/DD4hepVolumeBuilder.cpp
0015   src/DD4hepFieldAdapter.cpp)
0016 
0017 target_include_directories(
0018   ActsPluginDD4hep
0019   PUBLIC
0020     $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0021     $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
0022 target_link_libraries(
0023   ActsPluginDD4hep
0024   PUBLIC ActsCore ActsPluginTGeo)
0025 
0026 if(${DD4hep_VERSION} VERSION_LESS 1.11)
0027   target_include_directories(ActsPluginDD4hep PUBLIC ${DD4hep_INCLUDE_DIRS})
0028   target_link_libraries(ActsPluginDD4hep PUBLIC ${DD4hep_DDCORE_LIBRARY})
0029 else()
0030   target_link_libraries(ActsPluginDD4hep PUBLIC DD4hep::DDCore DD4hep::DDRec)
0031 endif()
0032 
0033 install(
0034   TARGETS ActsPluginDD4hep
0035   EXPORT ActsPluginDD4hepTargets
0036   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
0037 install(
0038   DIRECTORY include/Acts
0039   DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})