
include_directories(
	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
)

link_libraries (
	piglitutil_${piglit_target_api}
	${OPENGL_gl_LIBRARY}
)

if(NOT PIGLIT_USE_WAFFLE)
	# This test uses glutCreateSubWindow.
	piglit_add_executable (windowoverlap windowoverlap.c)
endif(NOT PIGLIT_USE_WAFFLE)

piglit_add_executable (attribs attribs.c)
piglit_add_executable (attribs-half-float attribs-half-float.c)
piglit_add_executable (array-stride array-stride.c)
piglit_add_executable (bgra-vert-attrib-pointer bgra-vert-attrib-pointer.c)
piglit_add_executable (bgra-sec-color-pointer bgra-sec-color-pointer.c)
piglit_add_executable (blendminmax blendminmax.c)
piglit_add_executable (blendsquare blendsquare.c)
piglit_add_executable (clear-varray-2.0 clear-varray-2.0.c)
piglit_add_executable (clipflat clipflat.c)
piglit_add_executable (copy-pixels copy-pixels.c)
piglit_add_executable (copypixels-sync copypixels-sync.c)
piglit_add_executable (copypixels-draw-sync copypixels-draw-sync.c)
piglit_add_executable (depth-clamp-range depth-clamp-range.c)
piglit_add_executable (degenerate-prims degenerate-prims.c)
piglit_add_executable (dlist-clear dlist-clear.c)
piglit_add_executable (dlist-color-material dlist-color-material.c)
piglit_add_executable (dlist-fdo3129-01 dlist-fdo3129-01.c)
piglit_add_executable (dlist-fdo3129-02 dlist-fdo3129-02.c)
piglit_add_executable (dlist-fdo31590 dlist-fdo31590.c)
piglit_add_executable (depth_clamp depth_clamp.c)
piglit_add_executable (depth-clear-precision-check depth-clear-precision-check.c)
piglit_add_executable (depth-clear-with-copy depth-clear-with-copy.c)
piglit_add_executable (depthfunc depthfunc.c)
piglit_add_executable (depthrange-clear depthrange-clear.c)
piglit_add_executable (draw-arrays-colormaterial draw-arrays-colormaterial.c)
piglit_add_executable (draw-batch draw-batch.c)
piglit_add_executable (draw-copypixels-sync draw-copypixels-sync.c)
piglit_add_executable (draw-elements draw-elements.c)
piglit_add_executable (draw-elements-vs-inputs draw-elements-vs-inputs.c)
piglit_add_executable (draw-pixel-with-texture draw-pixel-with-texture.c)
piglit_add_executable (draw-sync draw-sync.c)
piglit_add_executable (draw-pixels draw-pixels.c)
piglit_add_executable (draw-vertices draw-vertices.c)
piglit_add_executable (draw-vertices-half-float draw-vertices-half-float.c)
piglit_add_executable (drawpix-z drawpix-z.c)
piglit_add_executable (fog-modes fog-modes.c)
piglit_add_executable (vertex-fallbacks vertex-fallbacks.c)
IF (UNIX)
	target_link_libraries (fog-modes m)
ENDIF (UNIX)
piglit_add_executable (fragment-center fragment-center.c)
piglit_add_executable (framebuffer-srgb framebuffer-srgb.c)
IF (UNIX)
	target_link_libraries (framebuffer-srgb m)
ENDIF (UNIX)
piglit_add_executable (getactiveattrib getactiveattrib.c)
piglit_add_executable (geterror-inside-begin geterror-inside-begin.c)
piglit_add_executable (geterror-invalid-enum geterror-invalid-enum.c)
piglit_add_executable (glinfo glinfo.c)
piglit_add_executable (gl30basic gl30basic.c)
piglit_add_executable (hiz hiz.c)
if (UNIX)
	target_link_libraries (hiz m)
endif (UNIX)
piglit_add_executable (early-z early-z.c)
piglit_add_executable (idtech-extension-strings idtech-extension-strings.c)
piglit_add_executable (infinite-spot-light infinite-spot-light.c)
piglit_add_executable (isbufferobj isbufferobj.c)
piglit_add_executable (linestipple linestipple.c)
piglit_add_executable (line-aa-width line-aa-width.c)
IF (UNIX)
	target_link_libraries (line-aa-width m)
ENDIF (UNIX)
piglit_add_executable (line-smooth-coverage line-smooth-coverage.c)
piglit_add_executable (line-smooth-stipple line-smooth-stipple.c)
piglit_add_executable (line-flat-clip-color line-flat-clip-color.c)
piglit_add_executable (lineloop lineloop.c)
piglit_add_executable (longprim longprim.c)
piglit_add_executable (masked-clear masked-clear.c)
piglit_add_executable (object-namespace-pollution object-namespace-pollution.c)
piglit_add_executable (pos-array pos-array.c)
piglit_add_executable (pbo-drawpixels pbo-drawpixels.c)
piglit_add_executable (pbo-getteximage pbo-getteximage.c)
piglit_add_executable (pbo-read-argb8888 pbo-read-argb8888.c)
piglit_add_executable (pbo-readpixels-small pbo-readpixels-small.c)
piglit_add_executable (pbo-teximage pbo-teximage.c)
piglit_add_executable (pbo-teximage-tiling pbo-teximage-tiling.c)
piglit_add_executable (pbo-teximage-tiling-2 pbo-teximage-tiling-2.c)
piglit_add_executable (point-line-no-cull point-line-no-cull.c)
piglit_add_executable (point-vertex-id point-vertex-id.c)
piglit_add_executable (polygon-mode-offset polygon-mode-offset.c)
piglit_add_executable (polygon-mode-facing polygon-mode-facing.c)
piglit_add_executable (polygon-mode polygon-mode.c)
piglit_add_executable (polygon-offset polygon-offset.c)
piglit_add_executable (ppgtt_memory_alignment ppgtt_memory_alignment.c)
piglit_add_executable (provoking-vertex provoking-vertex.c)
piglit_add_executable (push-pop-texture-state push-pop-texture-state.c)
piglit_add_executable (oes-read-format oes-read-format.c)
piglit_add_executable (rasterpos rasterpos.c)
piglit_add_executable (read-front read-front.c)
piglit_add_executable (readpix-z readpix-z.c)
piglit_add_executable (roundmode-getintegerv roundmode-getintegerv.c)
piglit_add_executable (roundmode-pixelstore roundmode-pixelstore.c)
piglit_add_executable (select select.c)
piglit_add_executable (stencil-drawpixels stencil-drawpixels.c)
piglit_add_executable (stencil-twoside stencil-twoside.c)
piglit_add_executable (stencil-wrap stencil-wrap.c)
piglit_add_executable (sync_api sync_api.c)
piglit_add_executable (tex-errors tex-errors.c)
piglit_add_executable (texgen texgen.c)
piglit_add_executable (texunits texunits.c)
piglit_add_executable (timer_query timer_query.c)
piglit_add_executable (triangle-rasterization triangle-rasterization.cpp)
piglit_add_executable (triangle-rasterization-overdraw triangle-rasterization-overdraw.cpp)
piglit_add_executable (two-sided-lighting two-sided-lighting.c)
piglit_add_executable (two-sided-lighting-separate-specular two-sided-lighting-separate-specular.c)
piglit_add_executable (user-clip user-clip.c)
piglit_add_executable (varray-disabled varray-disabled.c)
piglit_add_executable (vao-01 vao-01.c)
piglit_add_executable (vao-02 vao-02.c)
piglit_add_executable (vao-element-array-buffer vao-element-array-buffer.c)
piglit_add_executable (vbo-map-remap vbo-map-remap.c)
piglit_add_executable (vbo-map-unsync vbo-map-unsync.c)
piglit_add_executable (vbo-bufferdata vbo-bufferdata.c)
piglit_add_executable (vbo-subdata-zero vbo-subdata-zero.c)
piglit_add_executable (vbo-subdata-sync vbo-subdata-sync.c)
piglit_add_executable (object_purgeable-api-pbo object_purgeable-api-pbo.c object_purgeable.c)
piglit_add_executable (object_purgeable-api-texture object_purgeable-api-texture.c object_purgeable.c)
piglit_add_executable (object_purgeable-api-vbo object_purgeable-api-vbo.c object_purgeable.c)
piglit_add_executable (occlusion-query-discard occlusion-query-discard.c)
piglit_add_executable (quad-invariance quad-invariance.c)
piglit_add_executable (clear-accum clear-accum.c)
piglit_add_executable (vs-point_size-zero vs-point_size-zero.c)
piglit_add_executable (triangle-guardband-viewport triangle-guardband-viewport.c)
piglit_add_executable (teximage-scale-bias teximage-scale-bias.c)
piglit_add_executable (viewport-clamp viewport-clamp.c)
piglit_add_executable (clearbuffer-depth-cs-probe clearbuffer-depth-cs-probe.c)

# vim: ft=cmake:
