Skip to content

Commit c33d9b5

Browse files
committed
Enable testing to run all benchmarks with one command
1 parent af5c26c commit c33d9b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ add_executable(unified_cuda src/unified.cpp)
4747
target_link_libraries(unified_af benchmark ArrayFire::af af_benchmark)
4848
target_link_libraries(unified_cuda benchmark ArrayFire::afcuda af_benchmark)
4949

50+
enable_testing()
51+
5052
function(addBenchmark name)
5153
add_executable(${name} src/${name}.cpp)
54+
add_test(${name} ${name})
5255
target_link_libraries(${name} af_benchmark)
5356
endfunction()
5457

0 commit comments

Comments
 (0)