Warning, /acts/Plugins/Geant4/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(FetchContent)
0002
0003 add_library(
0004 ActsPluginGeant4
0005 SHARED
0006 src/Geant4Converters.cpp
0007 src/Geant4DetectorElement.cpp
0008 src/Geant4DetectorSurfaceFactory.cpp
0009 src/Geant4PhysicalVolumeSelectors.cpp
0010 )
0011 target_include_directories(
0012 ActsPluginGeant4
0013 PUBLIC
0014 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0015 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0016 )
0017 target_include_directories(
0018 ActsPluginGeant4
0019 SYSTEM
0020 PRIVATE ${Geant4_INCLUDE_DIRS}
0021 )
0022 target_link_libraries(ActsPluginGeant4 PUBLIC ActsCore ${Geant4_LIBRARIES})
0023
0024 install(
0025 TARGETS ActsPluginGeant4
0026 EXPORT ActsPluginGeant4Targets
0027 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0028 )
0029 install(DIRECTORY include/Acts DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})