summaryrefslogtreecommitdiff
path: root/tests/util/CMakeLists.gl.txt
blob: 2cd4ecdb9b4d1f8e657997d9b34d3f13f57cb12d (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
set(UTIL_GL_SOURCES
	${UTIL_GL_SOURCES}
	piglit-dispatch.c
	piglit-dispatch-init.c
	piglit-shader.c
	piglit-shader-gl.c
	piglit-util-gl.c
	piglit-vbo.cpp
	sized-internalformats.c
	minmax-test.c
	)

include_directories(
	${UTIL_GL_INCLUDES}
	)

link_libraries(
	${UTIL_GL_LIBS}
	)

IF(BUILD_GLX_TESTS)
	# XXX: This is currently duplicated wherever tests
	# include "piglit-glx-util.h". Is it possible to refactor it?
	include_directories(
		${GLPROTO_INCLUDE_DIRS}
	)

	add_definitions ( -DUSE_GLX )
	piglit_add_library (piglitglxutil
		    piglit-shader.c
		    piglit-shader-gl.c
		    piglit-util-gl-common.c
		    piglit-util-gl-enum.c
		    piglit-util-gl.c
		    piglit-glx-framework.c
		    piglit-glx-util.c
		    piglit-dispatch.c
		    piglit-dispatch-init.c
	)
	target_link_libraries(piglitglxutil
		piglitutil_${piglit_target_api}
		)
	set (UTIL_GL_SOURCES
		${UTIL_GL_SOURCES}
		piglit-glx-util.c
	)
ENDIF(BUILD_GLX_TESTS)

piglit_add_library (piglitutil_${piglit_target_api}
	${UTIL_GL_SOURCES}
)

# vim: ft=cmake: