Warning, /EICrecon/src/tests/algorithms_test/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Automatically set plugin name the same as the directory name
0002 get_filename_component(TEST_NAME ${CMAKE_CURRENT_LIST_DIR} NAME)
0003
0004 # These tests can use the Catch2-provided main
0005 add_executable(
0006 ${TEST_NAME}
0007 algorithmsInit.cc
0008 calorimetry_CalorimeterIslandCluster.cc
0009 calorimetry_ImagingTopoCluster.cc
0010 tracking_SiliconSimpleCluster.cc
0011 calorimetry_CalorimeterHitDigi.cc
0012 calorimetry_CalorimeterClusterRecoCoG.cc
0013 calorimetry_CalorimeterClusterShape.cc
0014 calorimetry_HEXPLIT.cc
0015 calorimetry_CalorimeterTruthClustering.cc
0016 digi_EICROCDigitization.cc
0017 digi_PulseGeneration.cc
0018 digi_CALOROCDigitization.cc
0019 tracking_MPGDHitReconstruction.cc
0020 digi_MPGDTrackerDigi.cc
0021 tracking_TrackSeeding.cc
0022 pid_MergeTracks.cc
0023 particle_ChargedCandidateMaker.cc
0024 particle_flow_CaloRemnantCombiner.cc
0025 particle_flow_TrackProtoClusterMatchPromoter.cc
0026 pid_MergeParticleID.cc
0027 pid_lut_PIDLookup.cc
0028 meta_SortSubsetCollection.cc
0029 reco_ClustersToParticles.cc)
0030
0031 # Add Acts version definitions to test executable
0032 target_compile_definitions(
0033 ${TEST_NAME} PRIVATE "Acts_VERSION_MAJOR=${Acts_VERSION_MAJOR}"
0034 "Acts_VERSION_MINOR=${Acts_VERSION_MINOR}")
0035
0036 # Explicit linking to podio::podio is needed due to
0037 # https://github.com/JeffersonLab/JANA2/issues/151
0038 target_link_libraries(
0039 ${TEST_NAME}
0040 PRIVATE Catch2::Catch2WithMain
0041 algorithms_calorimetry_library
0042 algorithms_fardetectors_library
0043 algorithms_particle_flow_library
0044 algorithms_pid_library
0045 algorithms_pid_lut_library
0046 algorithms_reco_library
0047 algorithms_digi_library
0048 algorithms_tracking_library
0049 evaluator_library
0050 particle_service_library
0051 pid_lut_library
0052 podio::podio
0053 podio::podioIO)
0054
0055 # Install executable
0056 install(TARGETS ${TEST_NAME} DESTINATION bin)
0057
0058 add_test(NAME t_${TEST_NAME} COMMAND env LLVM_PROFILE_FILE=${TEST_NAME}.profraw
0059 $<TARGET_FILE:${TEST_NAME}>)