Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ endif ()
add_subdirectory (simple-print)
add_subdirectory (ocl-icd-compat)
add_subdirectory (object-lifetime)
add_subdirectory (object-acquire)
19 changes: 19 additions & 0 deletions object-acquire/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
set (OPENCL_OBJECT_ACQUIRE_LAYER_SOURCES
object_acquire.cpp)

if (WIN32)
list (APPEND OPENCL_OBJECT_ACQUIRE_LAYER_SOURCES object_acquire.def)
else ()
if (NOT APPLE)
list (APPEND OPENCL_OBJECT_ACQUIRE_LAYER_SOURCES object_acquire.map)
endif ()
endif ()

add_library (CLObjectAcquireLayer SHARED ${OPENCL_OBJECT_ACQUIRE_LAYER_SOURCES})

if (NOT WIN32 AND NOT APPLE)
set_target_properties (CLObjectAcquireLayer PROPERTIES LINK_FLAGS "-Wl,--version-script -Wl,${CMAKE_CURRENT_SOURCE_DIR}/object_acquire.map")
endif ()

install (TARGETS CLObjectAcquireLayer
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
Loading