Warning, /acts/Detray/tests/include/detray/test/device/cuda/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 message(STATUS "Building 'detray::test_cuda' component")
0010
0011 # C++17 support for CUDA requires CMake 3.18.
0012 cmake_minimum_required(VERSION 3.18)
0013
0014 # Enable CUDA as a language.
0015 enable_language(CUDA)
0016
0017 # Set the CUDA build flags.
0018 include(detray-compiler-options-cuda)
0019
0020 # Set up a test library, which the "new style" benchmarks and tests could use.
0021 add_library(
0022 detray_test_cuda
0023 STATIC
0024 "algebra_test_suite.cuh"
0025 "bfield.hpp"
0026 "cuda_test_fixture.hpp"
0027 "execute_cuda_test.cuh"
0028 "material_validation.hpp"
0029 "material_validation.cu"
0030 "navigation_validation.hpp"
0031 "navigation_validation.cu"
0032 )
0033
0034 add_library(detray::test_cuda ALIAS detray_test_cuda)
0035
0036 target_link_libraries(
0037 detray_test_cuda
0038 PUBLIC
0039 CUDA::cudart
0040 vecmem::cuda
0041 covfie::cuda
0042 detray::core_array
0043 detray::test_device
0044 detray::test_cpu
0045 detray::validation_utils
0046 )