test_pie/external/opencl/CMakeLists.txt

11 lines
222 B
CMake
Raw Normal View History

2023-09-14 11:12:02 +02:00
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()