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