mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
19 lines
580 B
CMake
19 lines
580 B
CMake
set(test_srcs
|
|
int64_axis.cu
|
|
float64_axis.cu
|
|
type_axis.cu
|
|
type_list.cu
|
|
)
|
|
|
|
enable_testing()
|
|
|
|
foreach(test_src IN LISTS test_srcs)
|
|
get_filename_component(test_name "${test_src}" NAME_WLE)
|
|
string(PREPEND test_name "nvbench.test.")
|
|
add_executable(${test_name} "${test_src}")
|
|
target_include_directories(${test_name} PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
|
|
target_link_libraries(${test_name} PRIVATE nvbench fmt)
|
|
set_target_properties(${test_name} PROPERTIES COMPILE_FEATURES cuda_std_17)
|
|
add_test(NAME ${test_name} COMMAND "$<TARGET_FILE:${test_name}>")
|
|
endforeach()
|