Warning, /acts/Detray/tests/benchmarks/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 # Set the common C++ flags.
0010 include(detray-compiler-options-cpp)
0011
0012 include_directories(
0013 SYSTEM
0014 $<TARGET_PROPERTY:covfie::core,INTERFACE_INCLUDE_DIRECTORIES>
0015 )
0016
0017 # Set up a common benchmark library.
0018 file(
0019 GLOB _detray_benchmarks_headers
0020 RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
0021 "include/detray/benchmarks/*.hpp"
0022 )
0023
0024 add_library(detray_benchmarks INTERFACE "${_detray_benchmarks_headers}")
0025 add_library(detray::benchmarks ALIAS detray_benchmarks)
0026
0027 target_include_directories(
0028 detray_benchmarks
0029 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include"
0030 )
0031
0032 target_link_libraries(
0033 detray_benchmarks
0034 INTERFACE benchmark::benchmark vecmem::core detray::core detray::test_common
0035 )
0036
0037 unset(_detray_benchmarks_headers)
0038
0039 # Set up the host/cpu benchmarks.
0040 if(DETRAY_BUILD_HOST)
0041 add_subdirectory(cpu)
0042 add_subdirectory(include/detray/benchmarks/cpu)
0043 endif()
0044
0045 # Set up all of the "device" benchmarks.
0046
0047 if(DETRAY_BUILD_CUDA OR DETRAY_BUILD_HIP)
0048 add_subdirectory(include/detray/benchmarks/device)
0049 endif()
0050
0051 if(DETRAY_BUILD_CUDA)
0052 add_subdirectory(cuda)
0053 endif()