C++ OpenCL wrapper (version 1.2, IIRC?)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
478 B

cmake_minimum_required(VERSION 2.8)
set(LIBNAME JCLWrapper)
file(GLOB sources "*.cpp")
file(GLOB headers "*.hpp")
add_library(${LIBNAME} ${headers} ${sources})
find_library(OPENCL_LIBRARY OpenCL)
set(libs ${OPENCL_LIBRARY})
set(${LIBNAME}_LIBRARIES ${LIBNAME} ${libs} CACHE INTERNAL "")
target_link_libraries(${LIBNAME} ${libs})
target_include_directories(${LIBNAME} PUBLIC ".")
install(TARGETS ${LIBNAME} DESTINATION lib)
install(FILES ${headers} DESTINATION include/J)