Warning, /acts/Plugins/Traccc/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 acts_add_library(
0002 PluginTraccc
0003 src/TrackConversion.cpp
0004 ACTS_INCLUDE_FOLDER include/ActsPlugins
0005 )
0006
0007 target_include_directories(
0008 ActsPluginTraccc
0009 PUBLIC
0010 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/>
0011 $<INSTALL_INTERFACE:include>
0012 )
0013
0014 # traccc is linked privately, so that the exported plugin target does not
0015 # reference traccc::core: the Acts package configuration does not look up
0016 # traccc, since its own package configuration depends on Acts (and on Thrust).
0017 # Users of the plugin headers have to find and link traccc themselves.
0018 target_link_libraries(
0019 ActsPluginTraccc
0020 PUBLIC Acts::Core detray::core vecmem::core
0021 PRIVATE traccc::core
0022 )
0023
0024 acts_compile_headers(PluginTraccc GLOB include/**/*.hpp)
0025
0026 # The header check needs traccc, which is not part of the plugin interface
0027 if(TARGET ActsPluginTraccc_HEADERS)
0028 target_link_libraries(ActsPluginTraccc_HEADERS PRIVATE traccc::core)
0029 endif()
0030
0031 add_component_dependencies(PluginTraccc vecmem detray)