test_pie/external/opencl/CMakeLists.txt
2023-09-14 11:12:02 +02:00

11 lines
222 B
CMake

file(GLOB SRCS ./*.cpp)
file(GLOB HDRS ./*.h)
if(OpenCL_FOUND)
add_library(cl STATIC ${SRCS} ${HDRS})
target_link_libraries(cl ${OpenCL_LIBRARY})
file(COPY kernels DESTINATION ${PROJECT_BINARY_DIR})
endif()