Skip to content
Snippets Groups Projects
Commit c44428f4 authored by Bram Veenboer's avatar Bram Veenboer
Browse files

Dont build OpenCLCorrelatorTest when OpenCL is not found

parent f9b111cb
No related branches found
No related tags found
No related merge requests found
find_package(OpenMP REQUIRED) find_package(OpenMP REQUIRED)
find_package(OpenCL REQUIRED) find_package(OpenCL)
if (${OpenCL_FOUND})
add_executable(OpenCLCorrelatorTest) add_executable(OpenCLCorrelatorTest)
target_sources(OpenCLCorrelatorTest PRIVATE OpenCLCorrelatorTest.cc) target_sources(OpenCLCorrelatorTest PRIVATE OpenCLCorrelatorTest.cc)
target_include_directories(OpenCLCorrelatorTest PRIVATE ${CMAKE_SOURCE_DIR} target_include_directories(OpenCLCorrelatorTest PRIVATE ${CMAKE_SOURCE_DIR}
...@@ -14,3 +15,4 @@ target_link_libraries(OpenCLCorrelatorTest PRIVATE ${OpenCL_LIBRARIES} ...@@ -14,3 +15,4 @@ target_link_libraries(OpenCLCorrelatorTest PRIVATE ${OpenCL_LIBRARIES}
# COMMAND OpenCLCorrelatorTest # COMMAND OpenCLCorrelatorTest
# # Specify working directory so the kernel code is found # # Specify working directory so the kernel code is found
# WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) # WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment