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