Warning, /acts/Plugins/TGeo/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set(library_sources
0002 src/TGeoCylinderDiscSplitter.cpp
0003 src/TGeoDetectorElement.cpp
0004 src/TGeoLayerBuilder.cpp
0005 src/TGeoParser.cpp
0006 src/TGeoPrimitivesHelper.cpp
0007 src/TGeoSurfaceConverter.cpp
0008 )
0009
0010 # Internal system of units change, This behavior affected versions up to v6-25-01
0011 # see: https://root.cern.ch/doc/v626/classTGeoMaterial.html
0012 if(${ROOT_VERSION} VERSION_GREATER "6.25.01")
0013 list(APPEND library_sources src/TGeoMaterialConverter.cpp)
0014 else()
0015 message(
0016 INFO
0017 " Skipping TGeoMaterialConverter due to ROOT version ${ROOT_VERSION}"
0018 )
0019 endif()
0020
0021 add_library(ActsPluginTGeo SHARED ${library_sources})
0022
0023 target_include_directories(
0024 ActsPluginTGeo
0025 PUBLIC
0026 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0027 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0028 )
0029 target_link_libraries(ActsPluginTGeo PUBLIC ActsCore ROOT::Geom)
0030
0031 install(
0032 TARGETS ActsPluginTGeo
0033 EXPORT ActsPluginTGeoTargets
0034 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0035 )
0036 install(DIRECTORY include/Acts DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})