Warning, /acts/Examples/Detectors/MagneticField/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_library(
0002 ActsExamplesMagneticField SHARED
0003 src/FieldMapRootIo.cpp
0004 src/FieldMapTextIo.cpp
0005 src/ScalableBFieldService.cpp)
0006 target_include_directories(
0007 ActsExamplesMagneticField
0008 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
0009 target_link_libraries(
0010 ActsExamplesMagneticField
0011 # the ROOT libraries should be private, but if we do that then the linker
0012 # fails with some missing ROOT symbols.
0013 PUBLIC ActsCore ActsExamplesFramework ROOT::Core ROOT::Tree
0014 PRIVATE std::filesystem)
0015
0016 install(
0017 TARGETS ActsExamplesMagneticField
0018 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
0019
0020 install(DIRECTORY include/ActsExamples DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})