cl: cl_mem_flags has CL_MEM_KERNEL_READ_AND_WRITE since 2.0
[piglit.git] / tests / util / CMakeLists.cl.txt
blobaa5063669b47cc8ce1706324afa3911ce4ef1d0c
1 include_directories(
2         ${UTIL_INCLUDES}
3         ${OPENCL_INCLUDE_PATH}
4         )
6 #MacOS has issues with linking a dylib with missing symbols without these flags
7 if (APPLE)
8         set(link_opts -Wl,-undefined,dynamic_lookup)
9 endif(APPLE)
11 link_libraries(
12         piglitutil
13         ${OPENCL_opencl_LIBRARY}
14         ${link_opts}
15         )
17 piglit_add_library (piglitutil_${piglit_target_api}
18         piglit-util-cl.c
19         piglit-util-cl-enum.c
20         piglit-framework-cl.c
21         piglit-framework-cl-custom.c
22         piglit-framework-cl-api.c
23         piglit-framework-cl-program.c
26 # vim: ft=cmake: