include_directories(
	${piglit_SOURCE_DIR}/tests

	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
	)

link_libraries (
	piglitutil_${piglit_target_api}
)

piglit_add_library(hiz-util
	hiz-util.c
	)

link_libraries (
	hiz-util

	${OPENGL_gl_LIBRARY}
)

piglit_add_executable(hiz-depth-stencil-test-fbo-d0-s8 hiz-depth-stencil-test-fbo-d0-s8.c)
piglit_add_executable(hiz-depth-stencil-test-fbo-d24-s0 hiz-depth-stencil-test-fbo-d24-s0.c)
piglit_add_executable(hiz-depth-stencil-test-fbo-d24-s8 hiz-depth-stencil-test-fbo-d24-s8.c)
piglit_add_executable(hiz-depth-stencil-test-fbo-d24s8 hiz-depth-stencil-test-fbo-d24s8.c)
piglit_add_executable(hiz-depth-read-fbo-d24-s0 hiz-depth-read-fbo-d24-s0.c)
piglit_add_executable(hiz-depth-read-fbo-d24-s8 hiz-depth-read-fbo-d24-s8.c)
piglit_add_executable(hiz-depth-read-fbo-d24s8 hiz-depth-read-fbo-d24s8.c)
piglit_add_executable(hiz-depth-read-window-stencil0 hiz-depth-read-window-stencil0.c)
piglit_add_executable(hiz-depth-read-window-stencil1 hiz-depth-read-window-stencil1.c)
piglit_add_executable(hiz-depth-test-fbo-d24-s0 hiz-depth-test-fbo-d24-s0.c)
piglit_add_executable(hiz-depth-test-fbo-d24-s8 hiz-depth-test-fbo-d24-s8.c)
piglit_add_executable(hiz-depth-test-fbo-d24s8 hiz-depth-test-fbo-d24s8.c)
piglit_add_executable(hiz-depth-test-window-stencil0 hiz-depth-test-window-stencil0.c)
piglit_add_executable(hiz-depth-test-window-stencil1 hiz-depth-test-window-stencil1.c)
piglit_add_executable(hiz-stencil-read-fbo-d0-s8 hiz-stencil-read-fbo-d0-s8.c)
piglit_add_executable(hiz-stencil-read-fbo-d24-s8 hiz-stencil-read-fbo-d24-s8.c)
piglit_add_executable(hiz-stencil-read-fbo-d24s8 hiz-stencil-read-fbo-d24s8.c)
piglit_add_executable(hiz-stencil-read-window-depth0 hiz-stencil-read-window-depth0.c)
piglit_add_executable(hiz-stencil-read-window-depth1 hiz-stencil-read-window-depth1.c)
piglit_add_executable(hiz-stencil-test-fbo-d0-s8 hiz-stencil-test-fbo-d0-s8.c)
piglit_add_executable(hiz-stencil-test-fbo-d24-s8 hiz-stencil-test-fbo-d24-s8.c)
piglit_add_executable(hiz-stencil-test-fbo-d24s8 hiz-stencil-test-fbo-d24s8.c)
piglit_add_executable(hiz-stencil-test-window-depth0 hiz-stencil-test-window-depth0.c)
piglit_add_executable(hiz-stencil-test-window-depth1 hiz-stencil-test-window-depth1.c)

# vim: ft=cmake:
