Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Detray/tutorials/src/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 CUDA tutorials")
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 # Examples using the array algebra plugin.
0021 detray_add_tutorial( detector_construction_cuda
0022    "detector_construction.cpp"
0023    "detector_construction.hpp"
0024    "detector_construction.cu"
0025    LINK_LIBRARIES vecmem::cuda detray::core_array detray::tutorial
0026                   detray::test_common
0027 )
0028 target_compile_definitions(
0029     detray_tutorial_detector_construction_cuda
0030     PRIVATE array=array
0031 )
0032 
0033 detray_add_tutorial( propagation_cuda
0034    "propagation.cpp"
0035    "propagation.hpp"
0036    "propagation_kernel.cu"
0037    LINK_LIBRARIES CUDA::cudart vecmem::cuda detray::core_array covfie::core covfie::cuda
0038                   detray::tutorial detray::test_common detray::test_cuda
0039 )
0040 target_compile_definitions(detray_tutorial_propagation_cuda PRIVATE array=array)