include_directories(
	${GLEXT_INCLUDE_DIR}
	${OPENGL_INCLUDE_PATH}
)

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

piglit_add_executable (ext_framebuffer_multisample-accuracy common.cpp accuracy.cpp)
piglit_add_executable (ext_framebuffer_multisample-alpha-to-coverage-no-draw-buffer-zero common.cpp
		       draw-buffers-common.cpp alpha-to-coverage-no-draw-buffer-zero.cpp)
piglit_add_executable (ext_framebuffer_multisample-alpha-to-coverage-no-draw-buffer-zero-write common.cpp
		       draw-buffers-common.cpp alpha-to-coverage-no-draw-buffer-zero-write.cpp)
piglit_add_executable (ext_framebuffer_multisample-alpha-to-coverage-dual-src-blend common.cpp
		       draw-buffers-common.cpp alpha-to-coverage-dual-src-blend.cpp)
piglit_add_executable (ext_framebuffer_multisample-alpha-to-one-dual-src-blend common.cpp
		       draw-buffers-common.cpp alpha-to-one-dual-src-blend.cpp)
piglit_add_executable (ext_framebuffer_multisample-alpha-blending alpha-blending.c)
piglit_add_executable (ext_framebuffer_multisample-alpha-blending-after-rendering
		       alpha-blending-after-rendering.c)
piglit_add_executable (ext_framebuffer_multisample-alpha-to-one-msaa-disabled common.cpp
		       draw-buffers-common.cpp alpha-to-one-msaa-disabled.cpp)
piglit_add_executable (ext_framebuffer_multisample-alpha-to-one-single-sample-buffer common.cpp
		       draw-buffers-common.cpp alpha-to-one-single-sample-buffer.cpp)
piglit_add_executable (ext_framebuffer_multisample-bitmap common.cpp bitmap.cpp)
piglit_add_executable (ext_framebuffer_multisample-blit-multiple-render-targets blit-multiple-render-targets.cpp)
piglit_add_executable (ext_framebuffer_multisample-blit-flipped common.cpp blit-flipped.cpp)
piglit_add_executable (ext_framebuffer_multisample-blit-mismatched-samples common.cpp blit-mismatched-samples.cpp)
piglit_add_executable (ext_framebuffer_multisample-blit-mismatched-sizes common.cpp blit-mismatched-sizes.cpp)
piglit_add_executable (ext_framebuffer_multisample-blit-mismatched-formats common.cpp blit-mismatched-formats.cpp)
piglit_add_executable (ext_framebuffer_multisample-clear common.cpp clear.cpp)
piglit_add_executable (ext_framebuffer_multisample-clip-and-scissor-blit common.cpp clip-and-scissor-blit.cpp)
piglit_add_executable (ext_framebuffer_multisample-draw-buffers-alpha-to-one common.cpp
		       draw-buffers-common.cpp draw-buffers-alpha-to-one.cpp)
piglit_add_executable (ext_framebuffer_multisample-draw-buffers-alpha-to-coverage common.cpp
		       draw-buffers-common.cpp draw-buffers-alpha-to-coverage.cpp)
piglit_add_executable (ext_framebuffer_multisample-dlist dlist.c)
piglit_add_executable (ext_framebuffer_multisample-enable-flag enable-flag.cpp common.cpp)
piglit_add_executable (ext_framebuffer_multisample-formats common.cpp formats.cpp)
piglit_add_executable (ext_framebuffer_multisample-interpolation common.cpp interpolation.cpp)
piglit_add_executable (ext_framebuffer_multisample-int-draw-buffers-alpha-to-one common.cpp
		       draw-buffers-common.cpp int-draw-buffers-alpha-to-one.cpp)
piglit_add_executable (ext_framebuffer_multisample-int-draw-buffers-alpha-to-coverage common.cpp
		       draw-buffers-common.cpp int-draw-buffers-alpha-to-coverage.cpp)
piglit_add_executable (ext_framebuffer_multisample-line-smooth common.cpp line-smooth.cpp)
piglit_add_executable (ext_framebuffer_multisample-minmax minmax.c)
piglit_add_executable (ext_framebuffer_multisample-multisample-blit common.cpp multisample-blit.cpp)
piglit_add_executable (ext_framebuffer_multisample-negative-copypixels negative-copypixels.c)
piglit_add_executable (ext_framebuffer_multisample-negative-copyteximage negative-copyteximage.c)
piglit_add_executable (ext_framebuffer_multisample-negative-max-samples negative-max-samples.c)
piglit_add_executable (ext_framebuffer_multisample-negative-mismatched-samples negative-mismatched-samples.c)
piglit_add_executable (ext_framebuffer_multisample-negative-readpixels negative-readpixels.c)
piglit_add_executable (ext_framebuffer_multisample-no-color no-color.cpp common.cpp)
piglit_add_executable (ext_framebuffer_multisample-point-smooth common.cpp point-smooth.cpp)
piglit_add_executable (ext_framebuffer_multisample-polygon-smooth common.cpp polygon-smooth.cpp)
piglit_add_executable (ext_framebuffer_multisample-polygon-stipple common.cpp polygon-stipple.cpp)
piglit_add_executable (ext_framebuffer_multisample-renderbuffer-samples renderbuffer-samples.c)
piglit_add_executable (ext_framebuffer_multisample-renderbufferstorage-samples renderbufferstorage-samples.c)
piglit_add_executable (ext_framebuffer_multisample-samples samples.c)
piglit_add_executable (ext_framebuffer_multisample-sample-coverage common.cpp sample-coverage.cpp)
piglit_add_executable (ext_framebuffer_multisample-sample-alpha-to-coverage common.cpp
		       draw-buffers-common.cpp sample-alpha-to-coverage.cpp)
piglit_add_executable (ext_framebuffer_multisample-sample-alpha-to-one common.cpp
		       draw-buffers-common.cpp sample-alpha-to-one.cpp)
piglit_add_executable (ext_framebuffer_multisample-turn-on-off common.cpp turn-on-off.cpp)
piglit_add_executable (ext_framebuffer_multisample-unaligned-blit common.cpp unaligned-blit.cpp)
piglit_add_executable (ext_framebuffer_multisample-upsample common.cpp upsample.cpp)
piglit_add_executable (ext_framebuffer_multisample-fast-clear fast-clear.c)
