Warning, /acts/Traccc/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # TRACCC library, part of the ACTS project (R&D line)
0002 #
0003 # (c) 2021-2024 CERN for the benefit of the ACTS project
0004 #
0005 # Mozilla Public License Version 2.0
0006
0007 # Project include(s).
0008 include(traccc-compiler-options-cpp)
0009
0010 # Set up a common library, shared by all of the tests.
0011 add_library(
0012 traccc_tests_common
0013 STATIC
0014 "common/tests/cca_test.hpp"
0015 "common/tests/ckf_telescope_test.hpp"
0016 "common/tests/data_test.hpp"
0017 "common/tests/kalman_fitting_momentum_resolution_test.hpp"
0018 "common/tests/kalman_fitting_test.hpp"
0019 "common/tests/triplet_fitting_test.hpp"
0020 "common/tests/kalman_fitting_telescope_test.hpp"
0021 "common/tests/triplet_fitting_telescope_test.hpp"
0022 "common/tests/kalman_fitting_toy_detector_test.hpp"
0023 "common/tests/kalman_fitting_wire_chamber_test.hpp"
0024 "common/tests/kalman_fitting_momentum_resolution_test.cpp"
0025 "common/tests/kalman_fitting_test.cpp"
0026 "common/tests/test_detectors.hpp"
0027 "common/tests/triplet_fitting_test.cpp"
0028 )
0029 target_include_directories(
0030 traccc_tests_common
0031 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/common
0032 )
0033 target_link_libraries(
0034 traccc_tests_common
0035 PUBLIC
0036 GTest::gtest
0037 Acts::Core
0038 vecmem::core
0039 detray::core
0040 detray::io
0041 detray::test_common
0042 covfie::core
0043 traccc::core
0044 traccc::io
0045 traccc_simulation
0046 )
0047
0048 # Use ROOT in traccc_tests_common, if requested.
0049 if(TRACCC_USE_ROOT)
0050 find_package(ROOT COMPONENTS Core RIO Hist REQUIRED)
0051 target_link_libraries(
0052 traccc_tests_common
0053 PRIVATE ROOT::Core ROOT::RIO ROOT::Hist
0054 )
0055 target_compile_definitions(traccc_tests_common PRIVATE TRACCC_HAVE_ROOT)
0056 endif()
0057
0058 # Add all of the test subdirectories.
0059 add_subdirectory(core)
0060 add_subdirectory(cpu)
0061 add_subdirectory(io)
0062
0063 if(TRACCC_BUILD_EXAMPLES)
0064 add_subdirectory(examples)
0065 endif()
0066
0067 if(TRACCC_BUILD_CUDA)
0068 add_subdirectory(cuda)
0069 endif()
0070
0071 if(TRACCC_BUILD_HIP)
0072 add_subdirectory(hip)
0073 endif()
0074
0075 if(TRACCC_BUILD_SYCL)
0076 add_subdirectory(sycl)
0077 endif()
0078
0079 if(TRACCC_BUILD_ALPAKA)
0080 add_subdirectory(alpaka)
0081 endif()