Back to home page

EIC code displayed by LXR

 
 

    


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

0001 acts_add_library(
0002     ExamplesDetectorDD4hep
0003     SHARED
0004     src/DD4hepDetector.cpp
0005     src/AlignedDD4hepDetectorElement.cpp
0006     src/OpenDataDetector.cpp
0007 )
0008 
0009 target_include_directories(
0010     ActsExamplesDetectorDD4hep
0011     PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0012 )
0013 target_link_libraries(
0014     ActsExamplesDetectorDD4hep
0015     PUBLIC Acts::PluginDD4hep Acts::ExamplesDetectorsCommon
0016 )
0017 
0018 if(ACTS_BUILD_EXAMPLES_GEANT4)
0019     if(${DD4hep_VERSION} VERSION_LESS 1.11)
0020         target_link_libraries(
0021             ActsExamplesDetectorDD4hep
0022             PUBLIC Acts::ExamplesGeant4 ${DD4hep_DDG4_LIBRARY}
0023         )
0024     else()
0025         target_link_libraries(
0026             ActsExamplesDetectorDD4hep
0027             PUBLIC Acts::ExamplesGeant4 DD4hep::DDG4
0028         )
0029     endif()
0030 
0031     target_sources(
0032         ActsExamplesDetectorDD4hep
0033         PUBLIC src/DDG4DetectorConstruction.cpp src/DD4hepDetectorGeant4.cpp
0034     )
0035 else()
0036     target_sources(
0037         ActsExamplesDetectorDD4hep
0038         PUBLIC src/DD4hepDetectorGeant4Stub.cpp
0039     )
0040 endif()
0041 
0042 if(${DD4hep_VERSION} VERSION_LESS 1.11)
0043     target_include_directories(
0044         ActsExamplesDetectorDD4hep
0045         PUBLIC ${DD4hep_INCLUDE_DIRS}
0046     )
0047     target_link_libraries(
0048         ActsExamplesDetectorDD4hep
0049         PUBLIC ${DD4hep_DDCORE_LIBRARY}
0050     )
0051 else()
0052     target_link_libraries(ActsExamplesDetectorDD4hep PUBLIC DD4hep::DDCore)
0053 endif()
0054 
0055 # not sure why this needs to be set, but dd4hep fails to compile otherwise
0056 set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
0057 set_target_properties(
0058     ActsExamplesDetectorDD4hep
0059     PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
0060 )