mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-26 09:48:53 +00:00
Add nvbench::main CMake target.
Linking to this instead of `nvbench::nvbench` will automatically include the `NVBENCH_MAIN` macro.
This commit is contained in:
@@ -23,7 +23,7 @@ foreach(test_src IN LISTS test_srcs)
|
||||
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)
|
||||
target_link_libraries(${test_name} PRIVATE nvbench::nvbench fmt)
|
||||
set_target_properties(${test_name} PROPERTIES COMPILE_FEATURES cuda_std_17)
|
||||
add_test(NAME ${test_name} COMMAND "$<TARGET_FILE:${test_name}>")
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user