
include_directories(
	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
)

link_libraries (
	piglitutil_${piglit_target_api}
	${EGL_LDFLAGS}
	${OPENGL_gl_LIBRARY}
)

IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	piglit_add_executable (egl-blob-cache egl-blob-cache.c)
	target_link_libraries(egl-blob-cache pthread)
	piglit_add_executable (egl-gl_oes_egl_image egl-gl_oes_egl_image.c)
	piglit_add_executable (egl-flush-external egl-flush-external.c)
	piglit_add_executable (egl-ext_egl_image_storage egl-ext_egl_image_storage.c)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

# vim: ft=cmake:
