Back to home page

sPhenix code displayed by LXR

 
 

    


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

0001 set(ACTS_EXAMPLES_G4SOURCES
0002     src/GdmlDetectorConstruction.cpp
0003     src/TelescopeG4DetectorConstruction.cpp
0004     src/Geant4Simulation.cpp
0005     src/MagneticFieldWrapper.cpp
0006     src/MaterialPhysicsList.cpp
0007     src/MaterialSteppingAction.cpp
0008     src/ParticleTrackingAction.cpp
0009     src/RegionCreator.cpp
0010     src/SensitiveSurfaceMapper.cpp
0011     src/SensitiveSteppingAction.cpp
0012     src/SimParticleTranslation.cpp
0013     src/ParticleKillAction.cpp
0014     src/PhysicsListFactory.cpp
0015     src/Geant4Manager.cpp)
0016 
0017 if (ACTS_BUILD_EXAMPLES_DD4HEP)
0018     list(APPEND ACTS_EXAMPLES_G4SOURCES src/DDG4DetectorConstruction.cpp)
0019 endif()
0020 
0021 add_library(
0022   ActsExamplesGeant4 SHARED ${ACTS_EXAMPLES_G4SOURCES})
0023 target_compile_definitions(
0024   ActsExamplesGeant4
0025   PUBLIC ${Geant4_DEFINITIONS})
0026 target_include_directories(
0027   ActsExamplesGeant4
0028   SYSTEM PUBLIC ${Geant4_INCLUDE_DIRS})
0029 target_include_directories(
0030   ActsExamplesGeant4
0031   PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
0032 target_link_libraries(
0033   ActsExamplesGeant4
0034   PUBLIC ActsCore ActsExamplesFramework ActsExamplesDetectorTelescope Boost::headers ${Geant4_LIBRARIES})
0035 
0036 if (ACTS_BUILD_EXAMPLES_DD4HEP)
0037   if(${DD4hep_VERSION} VERSION_LESS 1.11)
0038   target_include_directories(
0039     ActsExamplesGeant4
0040     PRIVATE ${DD4hep_INCLUDE_DIRS})
0041   target_link_libraries(
0042     ActsExamplesGeant4
0043     PRIVATE ${DD4hep_DDCORE_LIBRARY} ${DD4hep_DDG4_LIBRARY})
0044   else()
0045   target_link_libraries(
0046     ActsExamplesGeant4
0047     PUBLIC ActsExamplesDetectorDD4hep DD4hep::DDCore DD4hep::DDG4)
0048   endif()
0049 endif()
0050 
0051 install(
0052   TARGETS ActsExamplesGeant4
0053   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})