summaryrefslogtreecommitdiff
path: root/tests/egl/CMakeLists.gl.txt
blob: fb73248184eda486904fc1c383d3b5dd7b95b12b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

include_directories(
	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
)

link_libraries (
	piglitutil_${piglit_target_api}
	${OPENGL_gl_LIBRARY}
	${OPENGL_glu_LIBRARY}
	${OPENGL_egl_LIBRARY}
)

IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	piglit_add_executable (egl-nok-swap-region egl-util.c egl-nok-swap-region.c)
	target_link_libraries(egl-nok-swap-region pthread ${X11_X11_LIB})
	piglit_add_executable (egl-nok-texture-from-pixmap egl-util.c egl-nok-texture-from-pixmap.c)
	target_link_libraries(egl-nok-texture-from-pixmap pthread ${X11_X11_LIB})
	piglit_add_executable (egl-create-surface egl-util.c egl-create-surface.c)
	target_link_libraries(egl-create-surface pthread ${X11_X11_LIB})
	piglit_add_executable (egl-query-surface egl-util.c egl-query-surface.c)
	target_link_libraries(egl-query-surface pthread ${X11_X11_LIB})
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

# vim: ft=cmake: