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