Back to home page

EIC code displayed by LXR

 
 

    


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/StripModulePairing.cpp
0023     src/Utilities/VertexTruthUtility.cpp
0024     src/Validation/DuplicationPlotTool.cpp
0025     src/Validation/EffPlotTool.cpp
0026     src/Validation/FakePlotTool.cpp
0027     src/Validation/ResPlotTool.cpp
0028     src/Validation/TrackClassification.cpp
0029     src/Validation/PatternRecognitionPerformanceCollector.cpp
0030     src/Validation/TrackParameterPerformanceCollector.cpp
0031     src/Validation/TrackQualityPlotTool.cpp
0032     src/Validation/TrackSummaryPlotTool.cpp
0033     ACTS_INCLUDE_FOLDER include/ActsExamples
0034 )
0035 
0036 target_include_directories(
0037     ActsExamplesFramework
0038     PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0039 )
0040 target_link_libraries(
0041     ActsExamplesFramework
0042     PUBLIC Acts::Fatras Acts::PluginFpeMonitoring Boost::boost HepMC3::HepMC3
0043 )
0044 target_compile_definitions(
0045     ActsExamplesFramework
0046     PRIVATE BOOST_FILESYSTEM_NO_DEPRECATED
0047 )
0048 
0049 acts_compile_headers(
0050     ExamplesFramework
0051     GLOB
0052         include/ActsExamples/Framework/*.hpp
0053         include/ActsExamples/EventData/*.hpp
0054         include/ActsExamples/Root/*.hpp
0055         include/ActsExamples/Utilities/*.hpp
0056         include/ActsExamples/Validation/*.hpp
0057 )
0058 
0059 # Plugin-dependent framework components
0060 # Note that due to conditional compilation the headers of ROOT/Onnx components
0061 # get installed regardless of the configuration which could lead to link errors
0062 # in case one includes these files without building the components.
0063 if(ACTS_BUILD_EXAMPLES_ROOT)
0064     target_sources(
0065         ActsExamplesFramework
0066         PRIVATE src/Root/ScalingCalibrator.cpp src/Root/MuonVisualization.cpp
0067     )
0068     target_link_libraries(
0069         ActsExamplesFramework
0070         PUBLIC ROOT::Core ROOT::Hist ROOT::Graf ROOT::Gpad
0071     )
0072     set_source_files_properties(
0073         src/Framework/Sequencer.cpp
0074         TARGET
0075         ActsExamplesFramework
0076         PROPERTIES COMPILE_DEFINITIONS ACTS_BUILD_EXAMPLES_ROOT
0077     )
0078 endif()
0079 
0080 if(ACTS_BUILD_PLUGIN_ONNX)
0081     target_sources(ActsExamplesFramework PRIVATE src/Onnx/NeuralCalibrator.cpp)
0082     target_link_libraries(ActsExamplesFramework PUBLIC Acts::PluginOnnx)
0083     acts_compile_headers(ExamplesFramework GLOB include/ActsExamples/Onnx/*.hpp)
0084 endif()
0085 
0086 # newer DD4hep version require TBB and search internally for TBB in
0087 # config-only mode. to avoid mismatches we explicitly search using
0088 # config-only mode first to be sure that we find the same version.
0089 find_package(TBB ${_acts_tbb_version} CONFIG)
0090 
0091 if(NOT TBB_FOUND)
0092     # no version check possible when using the find module
0093     find_package(TBB ${_acts_tbb_version} MODULE REQUIRED)
0094 endif()
0095 
0096 target_link_libraries(ActsExamplesFramework PUBLIC TBB::tbb)