forked from acts-project/detray
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (38 loc) · 1.15 KB
/
Copy pathCMakeLists.txt
File metadata and controls
46 lines (38 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Detray library, part of the ACTS project (R&D line)
#
# (c) 2021-2023 CERN for the benefit of the ACTS project
#
# Mozilla Public License Version 2.0
# Set the common C++ flags.
include(detray-compiler-options-cpp)
include_directories(
SYSTEM
$<TARGET_PROPERTY:covfie::core,INTERFACE_INCLUDE_DIRECTORIES>
)
# Set up a common benchmark library.
file(
GLOB _detray_benchmarks_headers
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
"include/detray/benchmarks/*.hpp"
)
add_library(detray_benchmarks INTERFACE "${_detray_benchmarks_headers}")
add_library(detray::benchmarks ALIAS detray_benchmarks)
target_include_directories(
detray_benchmarks
INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include"
)
target_link_libraries(
detray_benchmarks
INTERFACE benchmark::benchmark vecmem::core detray::core detray::test_common
)
unset(_detray_benchmarks_headers)
# Set up the host/cpu benchmarks.
if(DETRAY_BUILD_HOST)
add_subdirectory(cpu)
add_subdirectory(include/detray/benchmarks/cpu)
endif()
# Set up all of the "device" benchmarks.
if(DETRAY_BUILD_CUDA)
add_subdirectory(cuda)
add_subdirectory(include/detray/benchmarks/device)
endif()