aboutsummaryrefslogtreecommitdiff
path: root/tests/glx/CMakeLists.gl.txt
blob: 789d84f92959830c0ca0c1f83f758f5741777e03 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

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

link_libraries (
	piglitglxutil
	${OPENGL_gl_LIBRARY}
	${OPENGL_glu_LIBRARY}
	${GLUT_glut_LIBRARY}
	${X11_X11_LIB}
)

IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
	add_executable (glx-fbconfig-sanity glx-fbconfig-sanity.c)
	add_executable (glx-fbconfig-compliance glx-fbconfig-compliance.c)
	add_executable (glx-fbo-binding glx-fbo-binding.c)
	add_executable (glx-shader-sharing glx-shader-sharing.c)
	add_executable (glx-close-display glx-close-display.c)
	add_executable (glx-destroycontext-1 glx-destroycontext-1.c)
	add_executable (glx-destroycontext-2 glx-destroycontext-2.c)
	add_executable (glx-multi-context-ib-1 glx-multi-context-ib-1.c)
	add_executable (glx-multithread glx-multithread.c)
	target_link_libraries(glx-multithread pthread)
	add_executable (glx-multithread-makecurrent-1 glx-multithread-makecurrent-1.c)
	target_link_libraries(glx-multithread-makecurrent-1 pthread)
	add_executable (glx-multithread-makecurrent-2 glx-multithread-makecurrent-2.c)
	target_link_libraries(glx-multithread-makecurrent-2 pthread)
	add_executable (glx-multithread-makecurrent-3 glx-multithread-makecurrent-3.c)
	target_link_libraries(glx-multithread-makecurrent-3 pthread)
	add_executable (glx-multithread-makecurrent-4 glx-multithread-makecurrent-4.c)
	target_link_libraries(glx-multithread-makecurrent-4 pthread)
	add_executable (glx-make-current glx-make-current.c)
	add_executable (glx-swap-event glx-swap-event.c)
	add_executable (glx-make-glxdrawable-current glx-make-glxdrawable-current.c)
	add_executable (glx-swap-exchange glx-swap-exchange.c)
	add_executable (glx-swap-pixmap glx-swap-pixmap.c)
	add_executable (glx-swap-pixmap-bad glx-swap-pixmap-bad.c)
	add_executable (glx-swap-singlebuffer glx-swap-singlebuffer.c)
	add_executable (glx-tfp glx-tfp.c)
	target_link_libraries(glx-tfp Xrender)

	add_executable (glx-pixmap-life glx-pixmap-life.c)
	add_executable (glx-pixmap13-life glx-pixmap13-life.c)
	add_executable (glx-window-life glx-window-life.c)
	add_executable (glx-pixmap-multi glx-pixmap-multi.c)
	add_executable (glx-pixmap-crosscheck glx-pixmap-crosscheck.c)

	add_executable (glx-visuals-depth glx-visuals-depth.c)
	add_executable (glx-visuals-stencil glx-visuals-stencil.c)

	add_executable (glx-copy-sub-buffer glx-copy-sub-buffer.c)
	add_executable (glx-query-drawable glx-query-drawable.c)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

# vim: ft=cmake: