aboutsummaryrefslogtreecommitdiff
path: root/tests/egl/CMakeLists.gl.txt
blob: 32591a909c4cafaa991214566db3912e39733de5 (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
26
27

include_directories(
	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
	${GLUT_INCLUDE_DIR}
)

link_libraries (
	piglitutil
	${OPENGL_gl_LIBRARY}
	${OPENGL_glu_LIBRARY}
	${OPENGL_egl_LIBRARY}
	${GLUT_glut_LIBRARY}
)

IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	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})
	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})
	add_executable (egl-create-surface egl-util.c egl-create-surface.c)
	target_link_libraries(egl-create-surface pthread ${X11_X11_LIB})
	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: