include_directories( ${UTIL_INCLUDES} ${OPENCL_INCLUDE_PATH} ) #MacOS has issues with linking a dylib with missing symbols without these flags if (APPLE) set(link_opts -Wl,-undefined,dynamic_lookup) endif(APPLE) link_libraries( piglitutil ${OPENCL_opencl_LIBRARY} ${link_opts} ) piglit_add_library (piglitutil_${piglit_target_api} piglit-util-cl.c piglit-util-cl-enum.c piglit-framework-cl.c piglit-framework-cl-custom.c piglit-framework-cl-api.c piglit-framework-cl-program.c ) # vim: ft=cmake: