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