1
1
#=============================================================================
2
- # Copyright (c) 2019-2021 , NVIDIA CORPORATION.
2
+ # Copyright (c) 2019-2024 , NVIDIA CORPORATION.
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
5
# you may not use this file except in compliance with the License.
@@ -23,6 +23,17 @@ add_library(cuspatial_benchmark_common OBJECT
23
23
24
24
target_compile_features (cuspatial_benchmark_common PUBLIC cxx_std_17 cuda_std_17)
25
25
26
+ set_target_properties (cuspatial_benchmark_common
27
+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUSPATIAL_BINARY_DIR} /benchmarks>"
28
+ INSTALL_RPATH "\$ ORIGIN/../../../lib"
29
+ CXX_STANDARD 17
30
+ CXX_STANDARD_REQUIRED ON
31
+ CUDA_STANDARD 17
32
+ CUDA_STANDARD_REQUIRED ON
33
+ POSITION_INDEPENDENT_CODE ON
34
+ INTERFACE_POSITION_INDEPENDENT_CODE ON
35
+ )
36
+
26
37
target_link_libraries (cuspatial_benchmark_common
27
38
PUBLIC benchmark::benchmark
28
39
cudf::cudftestutil
@@ -43,6 +54,10 @@ function(ConfigureBench CMAKE_BENCH_NAME)
43
54
set_target_properties (${CMAKE_BENCH_NAME}
44
55
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUSPATIAL_BINARY_DIR} /benchmarks>"
45
56
INSTALL_RPATH "\$ ORIGIN/../../../lib"
57
+ CXX_STANDARD 17
58
+ CXX_STANDARD_REQUIRED ON
59
+ CUDA_STANDARD 17
60
+ CUDA_STANDARD_REQUIRED ON
46
61
)
47
62
target_link_libraries (${CMAKE_BENCH_NAME} PRIVATE benchmark::benchmark_main cuspatial_benchmark_common)
48
63
install (
@@ -61,7 +76,11 @@ function(ConfigureNVBench CMAKE_BENCH_NAME)
61
76
${CMAKE_BENCH_NAME}
62
77
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUSPATIAL_BINARY_DIR} /benchmarks>"
63
78
INSTALL_RPATH "\$ ORIGIN/../../../lib"
64
- )
79
+ CXX_STANDARD 17
80
+ CXX_STANDARD_REQUIRED ON
81
+ CUDA_STANDARD 17
82
+ CUDA_STANDARD_REQUIRED ON
83
+ )
65
84
target_link_libraries (
66
85
${CMAKE_BENCH_NAME} PRIVATE cuspatial_benchmark_common nvbench::main
67
86
)
0 commit comments