Warning, /acts/Examples/Framework/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(ActsTargetLinkLibrariesSystem)
0002
0003 acts_add_library(
0004 ExamplesFramework
0005 src/EventData/MuonSpacePoint.cpp
0006 src/EventData/MuonSpacePointCalibrator.cpp
0007 src/EventData/Measurement.cpp
0008 src/EventData/MeasurementCalibration.cpp
0009 src/EventData/SimParticle.cpp
0010 src/EventData/Jets.cpp
0011 src/Framework/IAlgorithm.cpp
0012 src/Framework/SequenceElement.cpp
0013 src/Framework/WhiteBoard.cpp
0014 src/Framework/RandomNumbers.cpp
0015 src/Framework/Sequencer.cpp
0016 src/Framework/DataHandle.cpp
0017 src/Framework/BufferedReader.cpp
0018 src/Utilities/EventDataTransforms.cpp
0019 src/Utilities/Paths.cpp
0020 src/Utilities/Options.cpp
0021 src/Utilities/ParametricParticleGenerator.cpp
0022 src/Utilities/VertexTruthUtility.cpp
0023 src/Validation/DuplicationPlotTool.cpp
0024 src/Validation/EffPlotTool.cpp
0025 src/Validation/FakePlotTool.cpp
0026 src/Validation/ResPlotTool.cpp
0027 src/Validation/TrackClassification.cpp
0028 src/Validation/TrackFinderPerformanceCollector.cpp
0029 src/Validation/TrackQualityPlotTool.cpp
0030 src/Validation/TrackSummaryPlotTool.cpp
0031 ACTS_INCLUDE_FOLDER include/ActsExamples
0032 )
0033
0034 target_include_directories(
0035 ActsExamplesFramework
0036 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0037 )
0038 target_link_libraries(
0039 ActsExamplesFramework
0040 PUBLIC Acts::Fatras Acts::PluginFpeMonitoring Boost::boost HepMC3::HepMC3
0041 )
0042 target_compile_definitions(
0043 ActsExamplesFramework
0044 PRIVATE BOOST_FILESYSTEM_NO_DEPRECATED
0045 )
0046
0047 acts_compile_headers(
0048 ExamplesFramework
0049 GLOB
0050 include/ActsExamples/Framework/*.hpp
0051 include/ActsExamples/EventData/*.hpp
0052 include/ActsExamples/Root/*.hpp
0053 include/ActsExamples/Utilities/*.hpp
0054 include/ActsExamples/Validation/*.hpp
0055 )
0056
0057 # Plugin-dependent framework components
0058 # Note that due to conditional compilation the headers of ROOT/Onnx components
0059 # get installed regardless of the configuration which could lead to link errors
0060 # in case one includes these files without building the components.
0061 if(ACTS_BUILD_EXAMPLES_ROOT)
0062 target_sources(
0063 ActsExamplesFramework
0064 PRIVATE src/Root/ScalingCalibrator.cpp src/Root/MuonVisualization.cpp
0065 )
0066 target_link_libraries(
0067 ActsExamplesFramework
0068 PUBLIC ROOT::Core ROOT::Hist ROOT::Graf ROOT::Gpad
0069 )
0070 set_source_files_properties(
0071 src/Framework/Sequencer.cpp
0072 TARGET
0073 ActsExamplesFramework
0074 PROPERTIES COMPILE_DEFINITIONS ACTS_BUILD_EXAMPLES_ROOT
0075 )
0076 endif()
0077
0078 if(ACTS_BUILD_PLUGIN_ONNX)
0079 target_sources(ActsExamplesFramework PRIVATE src/Onnx/NeuralCalibrator.cpp)
0080 target_link_libraries(ActsExamplesFramework PUBLIC Acts::PluginOnnx)
0081 acts_compile_headers(ExamplesFramework GLOB include/ActsExamples/Onnx/*.hpp)
0082 endif()
0083
0084 # newer DD4hep version require TBB and search internally for TBB in
0085 # config-only mode. to avoid mismatches we explicitly search using
0086 # config-only mode first to be sure that we find the same version.
0087 find_package(TBB ${_acts_tbb_version} CONFIG)
0088
0089 if(NOT TBB_FOUND)
0090 # no version check possible when using the find module
0091 find_package(TBB ${_acts_tbb_version} MODULE REQUIRED)
0092 endif()
0093
0094 target_link_libraries(ActsExamplesFramework PUBLIC TBB::tbb)