blob: cf37040add28cd4d79d4a743f50c303d5279cec9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(LIBCLAPI_SRC
cl_driver.c
cl_alloc.c
cl_platform_id.c
cl_device_id.c
cl_context.c
cl_sampler.c
cl_command_queue.c
cl_mem.c
cl_image.c
cl_program.c
cl_kernel.c
cl_extension.c
cl_event.c
)
add_library(clapi SHARED ${LIBCLAPI_SRC})
target_link_libraries(clapi dl)
install (TARGETS clapi LIBRARY DESTINATION ${BEIGNET_INSTALL_DIR})
|