summaryrefslogtreecommitdiff
path: root/tests/util/CMakeLists.gl.txt
blob: 82231497adce5758845d23dcc65c63044f6d7467 (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
include_directories(
	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
	)

set(UTIL_SOURCES
	${UTIL_SOURCES}
	piglit-dispatch.c
	piglit-dispatch-init.c
	piglit-shader.c
	piglit-shader-gl.c
	piglit-transform-feedback.c
	piglit-util-gl.c
	piglit-vbo.cpp
	sized-internalformats.c
	minmax-test.c
	)

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-transform-feedback.c
		    piglit-util-gl-common.c
		    piglit-util-enum.c
		    piglit-util-gl.c
		    piglit-glx-framework.c
		    piglit-glx-util.c
		    piglit-dispatch.c
		    piglit-dispatch-init.c
	)
	set (UTIL_SOURCES
		${UTIL_SOURCES}
		piglit-glx-util.c
	)
ENDIF(BUILD_GLX_TESTS)

piglit_add_library (piglitutil
	${UTIL_SOURCES}
)

if(UNIX)
	target_link_libraries(piglitutil m)
endif(UNIX)

# vim: ft=cmake: