tri-2101010: add a simple demo for GL_ARB_vertex_type_2_10_10_10_rev
[mesa-demos.git] / src / trivial / CMakeLists.txt
blob26598a0677be5f276f142df78bee3eaa7cce2dcb
1 include_directories (
2         ${CMAKE_SOURCE_DIR}/src/util
3         ${OPENGL_INCLUDE_PATH}
4         ${GLUT_INCLUDE_DIR}
5         ${GLEW_INCLUDE_DIR}
8 link_directories (
9         ${CMAKE_SOURCE_DIR}/src/util
12 link_libraries (
13         util
14         ${OPENGL_gl_LIBRARY}
15         ${OPENGL_glu_LIBRARY}
16         ${GLUT_glut_LIBRARY}
17         ${GLEW_glew_LIBRARY}
20 set (subdir trivial)
22 set (targets
23         clear-color
24         clear-fbo
25         clear-fbo-scissor
26         clear-fbo-tex
27         clear-random
28         clear-repeat
29         clear-scissor
30         clear-undefined
31         createwin
32         dlist-begin-call-end
33         dlist-dangling
34         dlist-degenerate
35         dlist-edgeflag
36         dlist-edgeflag-dangling
37         dlist-flat-tri
38         dlist-mat-tri
39         dlist-recursive-call
40         dlist-tri-flat-tri
41         dlist-tri-mat-tri
42         draw2arrays
43         drawarrays
44         drawelements
45         drawelements-large
46         drawrange
47         flat-clip
48         fs-tri
49         line
50         line-clip
51         line-cull
52         line-flat
53         lineloop
54         lineloop-clip
55         lineloop-elts
56         line-smooth
57         line-stipple-wide
58         linestrip
59         linestrip-clip
60         linestrip-flat-stipple
61         linestrip-stipple
62         linestrip-stipple-wide
63         line-userclip
64         line-userclip-clip
65         line-userclip-nop
66         line-userclip-nop-clip
67         line-wide
68         line-xor
69         long-fixed-func
70         pgon-mode
71         point
72         point-clip
73         point-param
74         point-sprite
75         point-wide
76         point-wide-smooth
77         poly
78         poly-flat
79         poly-flat-clip
80         poly-flat-unfilled-clip
81         poly-unfilled
82         quad
83         quad-clip-all-vertices
84         quad-clip
85         quad-clip-nearplane
86         quad-degenerate
87         quad-flat
88         quad-offset-factor
89         quad-offset-unfilled
90         quad-offset-units
91         quads
92         quadstrip
93         quadstrip-clip
94         quadstrip-cont
95         quadstrip-flat
96         quad-tex-2d
97         quad-tex-3d
98         quad-tex-alpha
99         quad-tex-pbo
100         quad-tex-sub
101         quad-unfilled
102         quad-unfilled-clip
103         quad-unfilled-stipple
104         readpixels
105         sub-tex
106         tex-quads
107         tri-2101010
108         tri-alpha
109         tri-alpha-tex
110         tri-array-interleaved
111         tri-blend
112         tri-blend-color
113         tri-blend-max
114         tri-blend-min
115         tri-blend-revsub
116         tri-blend-sub
117         tri
118         tri-clear
119         tri-clip
120         tri-cull-both
121         tri-cull
122         tri-dlist
123         tri-edgeflag
124         tri-edgeflag-array
125         tri-edgeflag-pv
126         trifan
127         trifan-flat
128         trifan-flat-clip
129         trifan-flat-unfilled-clip
130         trifan-unfilled
131         tri-fbo
132         tri-fbo-tex
133         tri-fbo-tex-mip
134         tri-flat
135         tri-flat-clip
136         tri-fog
137         tri-fp
138         tri-fp-const-imm
139         tri-lit
140         tri-lit-material
141         tri-logicop-none
142         tri-logicop-xor
143         tri-mask-tri
144         tri-multitex-vbo
145         tri-orig
146         tri-point-line-clipped
147         tri-query
148         tri-repeat
149         tri-scissor-tri
150         tri-square
151         tri-stencil
152         tri-stipple
153         tristrip
154         tristrip-clip
155         tristrip-flat
156         tri-tex-1d
157         tri-tex-3d
158         tri-tex
159         tri-tri
160         tri-unfilled
161         tri-unfilled-clip
162         tri-unfilled-edgeflag
163         tri-unfilled-fog
164         tri-unfilled-point
165         tri-unfilled-smooth
166         tri-unfilled-tri
167         tri-unfilled-tri-lit
168         tri-unfilled-userclip
169         tri-unfilled-userclip-stip
170         tri-userclip
171         tri-viewport
172         tri-z-9
173         tri-z
174         tri-z-eq
175         vbo-drawarrays
176         vbo-drawelements
177         vbo-drawrange
178         vbo-noninterleaved
179         vbo-tri
180         vp-array
181         vp-array-hf
182         vp-array-int
183         vp-clip
184         vp-line-clip
185         vp-tri
186         vp-tri-cb
187         vp-tri-cb-pos
188         vp-tri-cb-tex
189         vp-tri-imm
190         vp-tri-invariant
191         vp-tri-swap
192         vp-tri-tex
193         vp-unfilled
196 foreach (target ${targets})
197         add_executable (${subdir}_${target} ${target}.c)
198         set_target_properties (${subdir}_${target} PROPERTIES OUTPUT_NAME ${target})
199         install (TARGETS ${subdir}_${target} DESTINATION ${subdir})
200 endforeach (target)