summaryrefslogtreecommitdiff
path: root/src/tests/CMakeLists.txt
blob: 72105ab207f9e3369553bb39e3c5cd5bbe2631b1 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
include_directories (
	${mesademos_SOURCE_DIR}/src/util
	${OPENGL_INCLUDE_PATH}
	${GLUT_INCLUDE_DIR}
	${GLEW_INCLUDE_DIR}
)

link_directories (
	${mesademos_SOURCE_DIR}/src/util
)

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

set (targets
	afsmultiarb
	antialias
	# XXX: Requires Linux kernel headers???
	#api_speed 
	arbfpspec
	arbfptest1
	arbfptexture
	arbfptrig
	arbgpuprog
	arbnpot
	arbnpot-mipmap
	arbvptest1
	arbvptest3
	arbvptorus
	arbvpwarpmesh
	arraytexture
	blendxor
	blitfb
	bufferobj
	bug_3050
	bug_3101
	bug_3195
	bug_texstore_i8
	bumpmap
	calibrate_rast
	condrender
	copypixrate
	cva
	cva_huge
	cylwrap
	# XXX: Depends on Mesa GL header
	#debugger
	drawbuffers2
	drawbuffers
	exactrast
	ext422square
	fbotest1
	fbotest2
	fbotest3
	fillrate
	floattex
	fog
	fogcoord
	fptest1
	fptexture
	# XXX: Requires Mesa source
	#getprocaddress
	getteximage
	glutfx
	interleave
	invert
	lineclip
	manytex
	mapbufrange
	minmag
	mipgen
	mipmap_comp
	mipmap_comp_tests
	mipmap_limits
	mipmap_tunnel
	mipmap_view
	multipal
	multitexarray
	multiwindow
	no_s3tc
	occlude
	packedpixels
	pbo
	persp_hint
	prim
	prog_parameter
	quads
	random
	readrate
	rubberband
	scissor
	scissor-viewport
	seccolor
	shader_api
	stencilreaddraw
	stencilwrap
	streaming_rect
	subtex
	subtexrate
	tex1d
	texcmp
	texcompress2
	texcompsub
	texdown
	texfilt
	texgenmix
	texleak
	texline
	texobj
	texrect
	texwrap
	unfilledclip
	vparray
	vpeval
	vptest1
	vptest2
	vptest3
	vptorus
	vpwarpmesh
	yuvrect
	yuvsquare
	zbitmap
	zcomp
	zdrawpix
	zreaddraw
)

foreach (target ${targets})
	add_executable (${target} ${target}.c)
endforeach (target)

install (TARGETS ${targets} DESTINATION tests)

if (X11_FOUND)
	include_directories (
		${X11_INCLUDE_DIR}
	)

	link_libraries (
		${X11_X11_LIBRARY}
	)

	set (xtargets
		auxbuffer
		jkrahntest
		sharedtex
		texobjshare
	)

	foreach (xtarget ${xtargets})
		add_executable (${xtarget} ${xtarget}.c)
	endforeach (xtarget)

	install (TARGETS ${xtargets} DESTINATION tests)
endif (X11_FOUND)