summaryrefslogtreecommitdiff
path: root/src/trivial/CMakeLists.txt
blob: a8e5443fc3324da86c33c399b0713dbcfbf2d419 (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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
include_directories (
	${CMAKE_SOURCE_DIR}/src/util
	${OPENGL_INCLUDE_PATH}
	${GLUT_INCLUDE_DIR}
	${GLEW_INCLUDE_DIR}
)

link_directories (
	${CMAKE_SOURCE_DIR}/src/util
)

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

set (subdir trivial)

set (targets
	clear-color
	clear-fbo
	clear-fbo-scissor
	clear-fbo-tex
	clear-random
	clear-repeat
	clear-scissor
	clear-undefined
	createwin
	dlist-begin-call-end
	dlist-dangling
	dlist-degenerate
	dlist-edgeflag
	dlist-edgeflag-dangling
	dlist-flat-tri
	dlist-mat-tri
	dlist-recursive-call
	dlist-tri-flat-tri
	dlist-tri-mat-tri
	draw2arrays
	drawarrays
	drawelements
	drawelements-large
	drawrange
	flat-clip
	fs-tri
	line
	line-clip
	line-cull
	line-flat
	lineloop
	lineloop-clip
	lineloop-elts
	line-smooth
	line-stipple-wide
	linestrip
	linestrip-clip
	linestrip-flat-stipple
	linestrip-stipple
	linestrip-stipple-wide
	line-userclip
	line-userclip-clip
	line-userclip-nop
	line-userclip-nop-clip
	line-wide
	line-xor
	long-fixed-func
	pgon-mode
	point
	point-clip
	point-param
	point-sprite
	point-wide
	point-wide-smooth
	poly
	poly-flat
	poly-flat-clip
	poly-flat-unfilled-clip
	poly-unfilled
	quad
	quad-clip-all-vertices
	quad-clip
	quad-clip-nearplane
	quad-degenerate
	quad-flat
	quad-offset-factor
	quad-offset-unfilled
	quad-offset-units
	quads
	quadstrip
	quadstrip-clip
	quadstrip-cont
	quadstrip-flat
	quad-tex-2d
	quad-tex-3d
	quad-tex-alpha
	quad-tex-pbo
	quad-tex-sub
	quad-unfilled
	quad-unfilled-clip
	quad-unfilled-stipple
	readpixels
	sub-tex
	tex-quads
	tri-2101010
	tri-alpha
	tri-alpha-tex
	tri-array-interleaved
	tri-blend
	tri-blend-color
	tri-blend-max
	tri-blend-min
	tri-blend-revsub
	tri-blend-sub
	tri
	tri-clear
	tri-clip
	tri-cull-both
	tri-cull
	tri-dlist
	tri-edgeflag
	tri-edgeflag-array
	tri-edgeflag-pv
	trifan
	trifan-flat
	trifan-flat-clip
	trifan-flat-unfilled-clip
	trifan-unfilled
	tri-fbo
	tri-fbo-tex
	tri-fbo-tex-mip
	tri-flat
	tri-flat-clip
	tri-fog
	tri-fp
	tri-fp-const-imm
	tri-lit
	tri-lit-material
	tri-logicop-none
	tri-logicop-xor
	tri-mask-tri
	tri-multitex-vbo
	tri-orig
	tri-point-line-clipped
	tri-query
	tri-repeat
	tri-scissor-tri
	tri-square
	tri-stencil
	tri-stipple
	tristrip
	tristrip-clip
	tristrip-flat
	tri-tex-1d
	tri-tex-3d
	tri-tex
	tri-tri
	tri-unfilled
	tri-unfilled-clip
	tri-unfilled-edgeflag
	tri-unfilled-fog
	tri-unfilled-point
	tri-unfilled-smooth
	tri-unfilled-tri
	tri-unfilled-tri-lit
	tri-unfilled-userclip
	tri-unfilled-userclip-stip
	tri-userclip
	tri-viewport
	tri-z-9
	tri-z
	tri-z-eq
	vbo-drawarrays
	vbo-drawarrays-2101010
	vbo-drawelements
	vbo-drawrange
	vbo-noninterleaved
	vbo-tri
	vp-array
	vp-array-hf
	vp-array-int
	vp-clip
	vp-line-clip
	vp-tri
	vp-tri-cb
	vp-tri-cb-pos
	vp-tri-cb-tex
	vp-tri-imm
	vp-tri-invariant
	vp-tri-swap
	vp-tri-tex
	vp-unfilled
)

foreach (target ${targets})
	add_executable (${subdir}_${target} ${target}.c)
	set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
	install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
endforeach (target)