summaryrefslogtreecommitdiff
path: root/tests/glx/CMakeLists.gl.txt
blob: fc00635e39dec009df14a23e98ed1a1bca85c0db (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

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

if(BUILD_GLX_TESTS)
    link_libraries (
        piglitglxutil
    )
endif(BUILD_GLX_TESTS)

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

IF(BUILD_GLX_TESTS)
	include_directories(
		${GLPROTO_INCLUDE_DIRS}
	)
	link_libraries (
		${X11_X11_LIB}
	)
	piglit_add_executable (glx-fbconfig-sanity glx-fbconfig-sanity.c)
	piglit_add_executable (glx-fbconfig-compliance glx-fbconfig-compliance.c)
	piglit_add_executable (glx-fbo-binding glx-fbo-binding.c)
	piglit_add_executable (glx-shader-sharing glx-shader-sharing.c)
	piglit_add_executable (glx-close-display glx-close-display.c)
	piglit_add_executable (glx-destroycontext-1 glx-destroycontext-1.c)
	piglit_add_executable (glx-destroycontext-2 glx-destroycontext-2.c)
	piglit_add_executable (glx-dont-care-mask glx-dont-care-mask.c)
	piglit_add_executable (glx-multi-context-ib-1 glx-multi-context-ib-1.c)
	piglit_add_executable (glx-multithread glx-multithread.c)
	target_link_libraries(glx-multithread pthread)
	piglit_add_executable (glx-multithread-makecurrent-1 glx-multithread-makecurrent-1.c)
	target_link_libraries(glx-multithread-makecurrent-1 pthread)
	piglit_add_executable (glx-multithread-makecurrent-2 glx-multithread-makecurrent-2.c)
	target_link_libraries(glx-multithread-makecurrent-2 pthread)
	piglit_add_executable (glx-multithread-makecurrent-3 glx-multithread-makecurrent-3.c)
	target_link_libraries(glx-multithread-makecurrent-3 pthread)
	piglit_add_executable (glx-multithread-makecurrent-4 glx-multithread-makecurrent-4.c)
	target_link_libraries(glx-multithread-makecurrent-4 pthread)
	piglit_add_executable (glx-make-current glx-make-current.c)
	piglit_add_executable (glx-swap-event glx-swap-event.c)
	piglit_add_executable (glx-make-glxdrawable-current glx-make-glxdrawable-current.c)
	piglit_add_executable (glx-swap-exchange glx-swap-exchange.c)
	piglit_add_executable (glx-swap-pixmap glx-swap-pixmap.c)
	piglit_add_executable (glx-swap-pixmap-bad glx-swap-pixmap-bad.c)
	piglit_add_executable (glx-swap-singlebuffer glx-swap-singlebuffer.c)

	if (X11_Xrender_FOUND)
		include_directories(${X11_Xrender_INCLUDE_PATH})
		piglit_add_executable (glx-tfp glx-tfp.c)
		target_link_libraries(glx-tfp ${X11_Xrender_LIB})
	endif()

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

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

	piglit_add_executable (glx-copy-sub-buffer glx-copy-sub-buffer.c)
	piglit_add_executable (glx-query-drawable glx-query-drawable.c)
ENDIF(BUILD_GLX_TESTS)

# vim: ft=cmake: