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 digi_EICROCDigitization.cc
0016 digi_PulseGeneration.cc
0017 digi_CALOROCDigitization.cc
0018 pid_MergeTracks.cc
0019 pid_MergeParticleID.cc
0020 pid_lut_PIDLookup.cc)
0021
0022 # Explicit linking to podio::podio is needed due to
0023 # https://github.com/JeffersonLab/JANA2/issues/151
0024 target_link_libraries(
0025 ${TEST_NAME}
0026 PRIVATE Catch2::Catch2WithMain
0027 algorithms_calorimetry_library
0028 algorithms_fardetectors_library
0029 algorithms_pid_library
0030 algorithms_pid_lut_library
0031 algorithms_reco_library
0032 algorithms_digi_library
0033 evaluator_library
0034 particle_service_library
0035 pid_lut_library
0036 podio::podio
0037 podio::podioIO)
0038
0039 # Install executable
0040 install(TARGETS ${TEST_NAME} DESTINATION bin)
0041
0042 add_test(NAME t_${TEST_NAME} COMMAND env LLVM_PROFILE_FILE=${TEST_NAME}.profraw
0043 $<TARGET_FILE:${TEST_NAME}>)