• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1add_executable(acxxel_test acxxel_test.cpp)
2target_link_libraries(
3    acxxel_test
4    acxxel
5    ${GTEST_BOTH_LIBRARIES}
6    ${CMAKE_THREAD_LIBS_INIT})
7add_test(AcxxelTest acxxel_test)
8
9add_executable(span_test span_test.cpp)
10target_link_libraries(
11    span_test
12    ${GTEST_BOTH_LIBRARIES}
13    ${CMAKE_THREAD_LIBS_INIT})
14add_test(SpanTest span_test)
15
16add_executable(status_test status_test.cpp)
17target_link_libraries(
18    status_test
19    ${GTEST_BOTH_LIBRARIES}
20    ${CMAKE_THREAD_LIBS_INIT})
21add_test(StatusTest status_test)
22
23if(ACXXEL_ENABLE_OPENCL)
24add_executable(opencl_test opencl_test.cpp)
25target_link_libraries(
26    opencl_test
27    acxxel
28    ${GTEST_BOTH_LIBRARIES}
29    ${CMAKE_THREAD_LIBS_INIT})
30add_test(OpenCLTest opencl_test)
31endif()
32
33if(ACXXEL_ENABLE_MULTI_DEVICE_UNIT_TESTS)
34add_executable(multi_device_test multi_device_test.cpp)
35target_link_libraries(
36    multi_device_test
37    acxxel
38    ${GTEST_BOTH_LIBRARIES}
39    ${CMAKE_THREAD_LIBS_INIT})
40add_test(MultiDeviceTest multi_device_test)
41endif()
42