Warning, /acts/Examples/Detectors/GeoModelDetector/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_library(ActsExamplesDetectorGeoModel SHARED src/GeoModelDetector.cpp)
0002
0003 target_include_directories(
0004 ActsExamplesDetectorGeoModel
0005 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0006 )
0007
0008 target_link_libraries(
0009 ActsExamplesDetectorGeoModel
0010 PUBLIC
0011 ActsCore
0012 ActsExamplesFramework
0013 ActsPluginGeoModel
0014 ActsExamplesDetectorsCommon
0015 )
0016
0017 if(ACTS_BUILD_EXAMPLES_GEANT4)
0018 find_library(GeoModel2G4_LIBRARY GeoModel2G4 REQUIRED)
0019
0020 target_link_libraries(
0021 ActsExamplesDetectorGeoModel
0022 PUBLIC ActsExamplesGeant4 ${GeoModel2G4_LIBRARY}
0023 )
0024
0025 target_sources(
0026 ActsExamplesDetectorGeoModel
0027 PUBLIC
0028 src/GeoModelGeant4DetectorConstruction.cpp
0029 src/GeoModelDetectorGeant4.cpp
0030 )
0031 else()
0032 target_sources(
0033 ActsExamplesDetectorDD4hep
0034 PUBLIC src/GeoModelDetectorGeant4Stub.cpp
0035 )
0036 endif()
0037
0038 install(
0039 TARGETS ActsExamplesDetectorGeoModel
0040 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0041 )