Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Detray/tests/integration_tests/cpu/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 # Setup integration tests that don't depend on algebra plugins
0010 detray_add_integration_test(cpu
0011        "utils/ranges.cpp"
0012        LINK_LIBRARIES GTest::gtest GTest::gtest_main detray::core
0013 )
0014 
0015 # Run integration tests only after unit tests passed
0016 set_tests_properties(
0017     detray_integration_test_cpu
0018     PROPERTIES DEPENDS "detray_unit_test_cpu"
0019 )
0020 
0021 # Macro setting up the CPU tests for a specific algebra plugin.
0022 macro(detray_add_cpu_test algebra)
0023     # Build the test executable.
0024     detray_add_integration_test(cpu_${algebra}
0025        "builders/grid_builder.cpp"
0026        "builders/homogeneous_material_builder.cpp"
0027        "builders/material_map_builder.cpp"
0028        "builders/volume_builder.cpp"
0029        "material/material_interaction.cpp"
0030        "propagator/backward_propagation.cpp"
0031        "propagator/covariance_transport.cpp"
0032        "propagator/guided_navigator.cpp"
0033        "propagator/propagation_caching_navigator.cpp"
0034        "propagator/propagation_direct_navigator.cpp"
0035        "utils/type_registry.cpp"
0036        LINK_LIBRARIES GTest::gtest GTest::gtest_main detray::core_${algebra}
0037                       vecmem::core detray::test_framework detray::test_common detray::test_utils
0038     )
0039 
0040     # Run integration tests only after unit tests passed
0041     set_tests_properties(
0042         detray_integration_test_cpu_${algebra}
0043         PROPERTIES
0044             DEPENDS
0045                 "detray_unit_test_cpu;detray_unit_test_covfie;detray_unit_test_cpu_${algebra}"
0046     )
0047 endmacro()
0048 
0049 # Build the array tests.
0050 detray_add_cpu_test( array )
0051 
0052 # Build the Eigen tests.
0053 if(DETRAY_EIGEN_PLUGIN)
0054     detray_add_cpu_test( eigen )
0055 endif()
0056 
0057 # Build the Fastor tests.
0058 if(DETRAY_FASTOR_PLUGIN)
0059     detray_add_cpu_test( fastor )
0060 endif()
0061 
0062 # Build the SMatrix tests.
0063 if(DETRAY_SMATRIX_PLUGIN)
0064     detray_add_cpu_test( smatrix )
0065 endif()
0066 
0067 # Build the Vc AoS tests.
0068 if(DETRAY_VC_AOS_PLUGIN)
0069     detray_add_cpu_test( vc_aos )
0070 endif()
0071 
0072 # Detector navigation tests
0073 detray_add_integration_test(telescope_detector
0074                             "detectors/telescope_detector_navigation.cpp"
0075                             LINK_LIBRARIES GTest::gtest GTest::gtest_main
0076                             detray::test_cpu detray::io detray::test_framework detray::test_common
0077                             detray::core_array
0078 )
0079 
0080 set_tests_properties(
0081     detray_integration_test_telescope_detector
0082     PROPERTIES
0083         DEPENDS
0084             "detray_unit_test_cpu;detray_unit_test_cpu_array;detray_unit_test_svgtools"
0085 )
0086 
0087 detray_add_integration_test(toy_detector
0088                             "detectors/toy_detector_navigation.cpp"
0089                             LINK_LIBRARIES GTest::gtest GTest::gtest_main
0090                             detray::test_cpu detray::io detray::test_framework  detray::test_common
0091                             detray::core_array
0092 )
0093 
0094 set_tests_properties(
0095     detray_integration_test_toy_detector
0096     PROPERTIES
0097         DEPENDS
0098             "detray_unit_test_cpu;detray_unit_test_cpu_array;detray_unit_test_svgtools"
0099 )
0100 
0101 detray_add_integration_test(wire_chamber
0102                             "detectors/wire_chamber_navigation.cpp"
0103                             LINK_LIBRARIES GTest::gtest GTest::gtest_main
0104                             detray::test_cpu detray::io detray::test_framework detray::test_common
0105                             detray::core_array
0106 )
0107 
0108 set_tests_properties(
0109     detray_integration_test_wire_chamber
0110     PROPERTIES
0111         DEPENDS
0112             "detray_unit_test_cpu;detray_unit_test_cpu_array;detray_unit_test_svgtools"
0113 )
0114 
0115 include(CMakeFindDependencyMacro)
0116 
0117 find_dependency(Boost COMPONENTS program_options)
0118 
0119 detray_add_integration_test(jacobian_validation
0120                             "propagator/jacobian_validation.cpp"
0121                             LINK_LIBRARIES GTest::gtest GTest::gtest_main
0122                             Boost::program_options detray::core_array
0123                             detray::test_framework detray::test_common detray::test_utils detray::tools
0124 )
0125 
0126 set_tests_properties(
0127     detray_integration_test_jacobian_validation
0128     PROPERTIES
0129         DEPENDS
0130             "detray_unit_test_cpu;detray_unit_test_cpu_arraydetray_integration_test_telescope_detector"
0131 )