Commit 6c1e6f71 authored by Chad Versace's avatar Chad Versace
Browse files

cmake: Each CMakeLists.txt that produces a target, rename to CMakeLists.gl.txt



In preparation for adding GLES2 targets to Piglit, it is necessary to
compartmentalize the GL targets and the GLES2 targets (of which none yet
exist) in API-specific CMake files. Since all CMake targets currently use
the OpenGL API, achieving compartmentalization is as simple as renaming
each CMakeLists.txt.

Note: This belongs to a series that adds GLES2 support to Piglit.
Signed-off-by: default avatarChad Versace <chad.versace@intel.com>
parent fca0133f
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${GLUT_glut_LIBRARY}
)
add_executable (asmparsertest asmparsertest.c)
# vim: ft=cmake:
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${GLUT_glut_LIBRARY}
)
add_executable (asmparsertest asmparsertest.c)
piglit_include_target_api()
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
add_executable (crash-cubemap-order crash-cubemap-order.c)
add_executable (crash-texparameter-before-teximage crash-texparameter-before-teximage.c)
add_executable (fdo9833 fdo9833.c)
add_executable (fdo10370 fdo10370.c)
add_executable (fdo14575 fdo14575.c)
add_executable (r300-readcache r300-readcache.c)
add_executable (r300-hiz-bug r300-hiz-bug.c)
if (UNIX)
target_link_libraries (r300-hiz-bug m)
endif (UNIX)
add_executable (tex1d-2dborder tex1d-2dborder.c)
add_executable (fdo20701 fdo20701.c)
add_executable (point-sprite point-sprite.c)
add_executable (fdo22540 fdo22540.c)
add_executable (fdo23489 fdo23489.c)
add_executable (fdo23670-depth_test fdo23670-depth_test.c)
add_executable (fdo23670-drawpix_stencil fdo23670-drawpix_stencil.c)
add_executable (fdo24066 fdo24066.c)
add_executable (fdo25614-genmipmap fdo25614-genmipmap.c)
add_executable (fdo28551 fdo28551.c)
add_executable (fdo31934 fdo31934.c)
add_executable (tri-tex-crash tri-tex-crash.c)
add_executable (vbo-buffer-unmap vbo-buffer-unmap.c)
# vim: ft=cmake:
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
add_executable (crash-cubemap-order crash-cubemap-order.c)
add_executable (crash-texparameter-before-teximage crash-texparameter-before-teximage.c)
add_executable (fdo9833 fdo9833.c)
add_executable (fdo10370 fdo10370.c)
add_executable (fdo14575 fdo14575.c)
add_executable (r300-readcache r300-readcache.c)
add_executable (r300-hiz-bug r300-hiz-bug.c)
if (UNIX)
target_link_libraries (r300-hiz-bug m)
endif (UNIX)
add_executable (tex1d-2dborder tex1d-2dborder.c)
add_executable (fdo20701 fdo20701.c)
add_executable (point-sprite point-sprite.c)
add_executable (fdo22540 fdo22540.c)
add_executable (fdo23489 fdo23489.c)
add_executable (fdo23670-depth_test fdo23670-depth_test.c)
add_executable (fdo23670-drawpix_stencil fdo23670-drawpix_stencil.c)
add_executable (fdo24066 fdo24066.c)
add_executable (fdo25614-genmipmap fdo25614-genmipmap.c)
add_executable (fdo28551 fdo28551.c)
add_executable (fdo31934 fdo31934.c)
add_executable (tri-tex-crash tri-tex-crash.c)
add_executable (vbo-buffer-unmap vbo-buffer-unmap.c)
piglit_include_target_api()
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${OPENGL_egl_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_executable (egl-nok-swap-region egl-util.c egl-nok-swap-region.c)
target_link_libraries(egl-nok-swap-region pthread X11)
add_executable (egl-nok-texture-from-pixmap egl-util.c egl-nok-texture-from-pixmap.c)
target_link_libraries(egl-nok-texture-from-pixmap pthread X11)
add_executable (egl-create-surface egl-util.c egl-create-surface.c)
target_link_libraries(egl-create-surface pthread X11)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# vim: ft=cmake:
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${OPENGL_egl_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_executable (egl-nok-swap-region egl-util.c egl-nok-swap-region.c)
target_link_libraries(egl-nok-swap-region pthread X11)
add_executable (egl-nok-texture-from-pixmap egl-util.c egl-nok-texture-from-pixmap.c)
target_link_libraries(egl-nok-texture-from-pixmap pthread X11)
add_executable (egl-create-surface egl-util.c egl-create-surface.c)
target_link_libraries(egl-create-surface pthread X11)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
piglit_include_target_api()
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
add_executable (fbo-1d fbo-1d.c)
add_executable (fbo-depth fbo-depth.c)
add_executable (fbo-depth-sample-compare fbo-depth-sample-compare.c)
add_executable (fbo-depthtex fbo-depthtex.c)
add_executable (fbo-3d fbo-3d.c)
add_executable (fbo-array fbo-array.c)
add_executable (fbo-alpha fbo-alpha.c)
add_executable (fbo-luminance-alpha fbo-luminance-alpha.c)
add_executable (fbo-blit fbo-blit.c)
add_executable (fbo-blit-d24s8 fbo-blit-d24s8.c)
add_executable (fbo-copypix fbo-copypix.c)
add_executable (fbo-readdrawpix fbo-readdrawpix.c)
add_executable (fbo-clearmipmap fbo-clearmipmap.c)
add_executable (fbo-clear-formats fbo-clear-formats.c)
add_executable (fbo-drawbuffers fbo-drawbuffers.c)
add_executable (fbo-drawbuffers-arbfp fbo-drawbuffers-arbfp.c)
add_executable (fbo-drawbuffers-fragcolor fbo-drawbuffers-fragcolor.c)
add_executable (fbo-drawbuffers-maxtargets fbo-drawbuffers-maxtargets.c)
add_executable (fbo-drawbuffers2-blend fbo-drawbuffers2-blend.c)
add_executable (fbo-drawbuffers2-colormask fbo-drawbuffers2-colormask.c)
add_executable (fbo-draw-buffers-blend fbo-draw-buffers-blend.c)
add_executable (fbo-flushing fbo-flushing.c)
add_executable (fbo-fragcoord fbo-fragcoord.c)
add_executable (fbo-fragcoord2 fbo-fragcoord2.c)
add_executable (fbo-generatemipmap fbo-generatemipmap.c)
add_executable (fbo-generatemipmap-array fbo-generatemipmap-array.c)
add_executable (fbo-generatemipmap-filtering fbo-generatemipmap-filtering.c)
add_executable (fbo-generatemipmap-formats fbo-generatemipmap-formats.c)
add_executable (fbo-generatemipmap-scissor fbo-generatemipmap-scissor.c)
add_executable (fbo-generatemipmap-nonsquare fbo-generatemipmap-nonsquare.c)
add_executable (fbo-generatemipmap-npot fbo-generatemipmap-npot.c)
add_executable (fbo-generatemipmap-viewport fbo-generatemipmap-viewport.c)
add_executable (fbo-getframebufferattachmentparameter-01 fbo-getframebufferattachmentparameter-01.c)
add_executable (fbo-incomplete-texture-01 fbo-incomplete-texture-01.c)
add_executable (fbo-incomplete-texture-02 fbo-incomplete-texture-02.c)
add_executable (fbo-incomplete-texture-03 fbo-incomplete-texture-03.c)
add_executable (fbo-incomplete-texture-04 fbo-incomplete-texture-04.c)
add_executable (fbo-integer fbo-integer.c)
add_executable (fbo-maxsize fbo-maxsize.c)
add_executable (fbo-nodepth-test fbo-nodepth-test.c)
add_executable (fbo-nostencil-test fbo-nostencil-test.c)
add_executable (fbo-readpixels fbo-readpixels.c)
add_executable (fbo-rg fbo-rg.c)
add_executable (fbo-srgb fbo-srgb.c)
IF (UNIX)
target_link_libraries (fbo-srgb m)
ENDIF (UNIX)
add_executable (fbo-storage-formats fbo-storage-formats.c)
add_executable (fbo-pbo-readpixels-small fbo-pbo-readpixels-small.c)
add_executable (fbo-copyteximage fbo-copyteximage.c)
add_executable (fbo-copyteximage-simple fbo-copyteximage-simple.c)
add_executable (fbo-cubemap fbo-cubemap.c)
add_executable (fbo-scissor-bitmap fbo-scissor-bitmap.c)
# vim: ft=cmake:
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/mesa/util
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
add_executable (fbo-1d fbo-1d.c)
add_executable (fbo-depth fbo-depth.c)
add_executable (fbo-depth-sample-compare fbo-depth-sample-compare.c)
add_executable (fbo-depthtex fbo-depthtex.c)
add_executable (fbo-3d fbo-3d.c)
add_executable (fbo-array fbo-array.c)
add_executable (fbo-alpha fbo-alpha.c)
add_executable (fbo-luminance-alpha fbo-luminance-alpha.c)
add_executable (fbo-blit fbo-blit.c)
add_executable (fbo-blit-d24s8 fbo-blit-d24s8.c)
add_executable (fbo-copypix fbo-copypix.c)
add_executable (fbo-readdrawpix fbo-readdrawpix.c)
add_executable (fbo-clearmipmap fbo-clearmipmap.c)
add_executable (fbo-clear-formats fbo-clear-formats.c)
add_executable (fbo-drawbuffers fbo-drawbuffers.c)
add_executable (fbo-drawbuffers-arbfp fbo-drawbuffers-arbfp.c)
add_executable (fbo-drawbuffers-fragcolor fbo-drawbuffers-fragcolor.c)
add_executable (fbo-drawbuffers-maxtargets fbo-drawbuffers-maxtargets.c)
add_executable (fbo-drawbuffers2-blend fbo-drawbuffers2-blend.c)
add_executable (fbo-drawbuffers2-colormask fbo-drawbuffers2-colormask.c)
add_executable (fbo-draw-buffers-blend fbo-draw-buffers-blend.c)
add_executable (fbo-flushing fbo-flushing.c)
add_executable (fbo-fragcoord fbo-fragcoord.c)
add_executable (fbo-fragcoord2 fbo-fragcoord2.c)
add_executable (fbo-generatemipmap fbo-generatemipmap.c)
add_executable (fbo-generatemipmap-array fbo-generatemipmap-array.c)
add_executable (fbo-generatemipmap-filtering fbo-generatemipmap-filtering.c)
add_executable (fbo-generatemipmap-formats fbo-generatemipmap-formats.c)
add_executable (fbo-generatemipmap-scissor fbo-generatemipmap-scissor.c)
add_executable (fbo-generatemipmap-nonsquare fbo-generatemipmap-nonsquare.c)
add_executable (fbo-generatemipmap-npot fbo-generatemipmap-npot.c)
add_executable (fbo-generatemipmap-viewport fbo-generatemipmap-viewport.c)
add_executable (fbo-getframebufferattachmentparameter-01 fbo-getframebufferattachmentparameter-01.c)
add_executable (fbo-incomplete-texture-01 fbo-incomplete-texture-01.c)
add_executable (fbo-incomplete-texture-02 fbo-incomplete-texture-02.c)
add_executable (fbo-incomplete-texture-03 fbo-incomplete-texture-03.c)
add_executable (fbo-incomplete-texture-04 fbo-incomplete-texture-04.c)
add_executable (fbo-integer fbo-integer.c)
add_executable (fbo-maxsize fbo-maxsize.c)
add_executable (fbo-nodepth-test fbo-nodepth-test.c)
add_executable (fbo-nostencil-test fbo-nostencil-test.c)
add_executable (fbo-readpixels fbo-readpixels.c)
add_executable (fbo-rg fbo-rg.c)
add_executable (fbo-srgb fbo-srgb.c)
IF (UNIX)
target_link_libraries (fbo-srgb m)
ENDIF (UNIX)
add_executable (fbo-storage-formats fbo-storage-formats.c)
add_executable (fbo-pbo-readpixels-small fbo-pbo-readpixels-small.c)
add_executable (fbo-copyteximage fbo-copyteximage.c)
add_executable (fbo-copyteximage-simple fbo-copyteximage-simple.c)
add_executable (fbo-cubemap fbo-cubemap.c)
add_executable (fbo-scissor-bitmap fbo-scissor-bitmap.c)
piglit_include_target_api()
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
add_executable (bgra-vert-attrib-pointer bgra-vert-attrib-pointer.c)
add_executable (bgra-sec-color-pointer bgra-sec-color-pointer.c)
add_executable (blendminmax blendminmax.c)
add_executable (blendsquare blendsquare.c)
add_executable (clear-varray-2.0 clear-varray-2.0.c)
add_executable (depth-clamp-range depth-clamp-range.c)
add_executable (dlist-clear dlist-clear.c)
add_executable (dlist-fdo3129-01 dlist-fdo3129-01.c)
add_executable (dlist-fdo3129-02 dlist-fdo3129-02.c)
add_executable (depth_clamp depth_clamp.c)
add_executable (depthfunc depthfunc.c)
add_executable (depthrange-clear depthrange-clear.c)
add_executable (draw-batch draw-batch.c)
add_executable (draw-elements draw-elements.c)
add_executable (draw-elements-base-vertex draw-elements-base-vertex.c)
add_executable (draw-elements-base-vertex-neg draw-elements-base-vertex-neg.c)
IF (UNIX)
target_link_libraries (draw-elements-base-vertex-neg m)
ENDIF (UNIX)
add_executable (draw-elements-vs-inputs draw-elements-vs-inputs.c)
add_executable (draw-instanced draw-instanced.c)
add_executable (draw-instanced-divisor draw-instanced-divisor.c)
add_executable (draw-vertices draw-vertices.c)
add_executable (draw-vertices-half-float draw-vertices-half-float.c)
add_executable (fog-modes fog-modes.c)
IF (UNIX)
target_link_libraries (fog-modes m)
ENDIF (UNIX)
add_executable (framebuffer-srgb framebuffer-srgb.c)
IF (UNIX)
target_link_libraries (framebuffer-srgb m)
ENDIF (UNIX)
add_executable (geterror-inside-begin geterror-inside-begin.c)
add_executable (geterror-invalid-enum geterror-invalid-enum.c)
add_executable (isbufferobj isbufferobj.c)
add_executable (linestipple linestipple.c)
add_executable (line-aa-width line-aa-width.c)
IF (UNIX)
target_link_libraries (line-aa-width m)
ENDIF (UNIX)
add_executable (longprim longprim.c)
add_executable (pbo-drawpixels pbo-drawpixels.c)
add_executable (pbo-read-argb8888 pbo-read-argb8888.c)
add_executable (pbo-readpixels-small pbo-readpixels-small.c)
add_executable (pbo-teximage pbo-teximage.c)
add_executable (pbo-teximage-tiling pbo-teximage-tiling.c)
add_executable (pbo-teximage-tiling-2 pbo-teximage-tiling-2.c)
add_executable (point-line-no-cull point-line-no-cull.c)
add_executable (primitive-restart primitive-restart.c)
add_executable (provoking-vertex provoking-vertex.c)
add_executable (oes-read-format oes-read-format.c)
add_executable (read-front read-front.c)
add_executable (scissor-bitmap scissor-bitmap.c)
add_executable (scissor-clear scissor-clear.c)
add_executable (scissor-copypixels scissor-copypixels.c)
add_executable (scissor-depth-clear scissor-depth-clear.c)
add_executable (scissor-many scissor-many.c)
add_executable (scissor-offscreen scissor-offscreen.c)
add_executable (scissor-stencil-clear scissor-stencil-clear.c)
add_executable (stencil-drawpixels stencil-drawpixels.c)
add_executable (stencil-twoside stencil-twoside.c)
add_executable (stencil-wrap stencil-wrap.c)
add_executable (sync_api sync_api.c)
add_executable (texgen texgen.c)
add_executable (texunits texunits.c)
add_executable (timer_query timer_query.c)
add_executable (user-clip user-clip.c)
add_executable (varray-disabled varray-disabled.c)
add_executable (vao-01 vao-01.c)
add_executable (vao-02 vao-02.c)
add_executable (vbo-map-remap vbo-map-remap.c)
add_executable (vbo-subdata-zero vbo-subdata-zero.c)
add_executable (vbo-subdata-sync vbo-subdata-sync.c)
add_executable (windowoverlap windowoverlap.c)
add_executable (object_purgeable-api-pbo object_purgeable-api-pbo.c object_purgeable.c)
add_executable (object_purgeable-api-texture object_purgeable-api-texture.c object_purgeable.c)
add_executable (object_purgeable-api-vbo object_purgeable-api-vbo.c object_purgeable.c)
add_executable (occlusion_query occlusion_query.c)
add_executable (occlusion-query-discard occlusion-query-discard.c)
add_executable (quad-invariance quad-invariance.c)
# vim: ft=cmake:
include_directories(
${OPENGL_INCLUDE_PATH}
${GLUT_INCLUDE_DIR}
${piglit_SOURCE_DIR}/tests/util
)
link_libraries (
piglitutil
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${TIFF_LIBRARY}
)
add_executable (bgra-vert-attrib-pointer bgra-vert-attrib-pointer.c)
add_executable (bgra-sec-color-pointer bgra-sec-color-pointer.c)
add_executable (blendminmax blendminmax.c)
add_executable (blendsquare blendsquare.c)
add_executable (clear-varray-2.0 clear-varray-2.0.c)
add_executable (depth-clamp-range depth-clamp-range.c)
add_executable (dlist-clear dlist-clear.c)
add_executable (dlist-fdo3129-01 dlist-fdo3129-01.c)
add_executable (dlist-fdo3129-02 dlist-fdo3129-02.c)
add_executable (depth_clamp depth_clamp.c)
add_executable (depthfunc depthfunc.c)
add_executable (depthrange-clear depthrange-clear.c)
add_executable (draw-batch draw-batch.c)
add_executable (draw-elements draw-elements.c)
add_executable (draw-elements-base-vertex draw-elements-base-vertex.c)
add_executable (draw-elements-base-vertex-neg draw-elements-base-vertex-neg.c)
IF (UNIX)
target_link_libraries (draw-elements-base-vertex-neg m)
ENDIF (UNIX)
add_executable (draw-elements-vs-inputs draw-elements-vs-inputs.c)
add_executable (draw-instanced draw-instanced.c)
add_executable (draw-instanced-divisor draw-instanced-divisor.c)
add_executable (draw-vertices draw-vertices.c)
add_executable (draw-vertices-half-float draw-vertices-half-float.c)
add_executable (fog-modes fog-modes.c)
IF (UNIX)
target_link_libraries (fog-modes m)
ENDIF (UNIX)
add_executable (framebuffer-srgb framebuffer-srgb.c)
IF (UNIX)
target_link_libraries (framebuffer-srgb m)
ENDIF (UNIX)
add_executable (geterror-inside-begin geterror-inside-begin.c)
add_executable (geterror-invalid-enum geterror-invalid-enum.c)
add_executable (isbufferobj isbufferobj.c)
add_executable (linestipple linestipple.c)
add_executable (line-aa-width line-aa-width.c)
IF (UNIX)
target_link_libraries (line-aa-width m)
ENDIF (UNIX)
add_executable (longprim longprim.c)
add_executable (pbo-drawpixels pbo-drawpixels.c)
add_executable (pbo-read-argb8888 pbo-read-argb8888.c)
add_executable (pbo-readpixels-small pbo-readpixels-small.c)
add_executable (pbo-teximage pbo-teximage.c)
add_executable (pbo-teximage-tiling pbo-teximage-tiling.c)
add_executable (pbo-teximage-tiling-2 pbo-teximage-tiling-2.c)
add_executable (point-line-no-cull point-line-no-cull.c)
add_executable (primitive-restart primitive-restart.c)
add_executable (provoking-vertex provoking-vertex.c)
add_executable (oes-read-format oes-read-format.c)
add_executable (read-front read-front.c)
add_executable (scissor-bitmap scissor-bitmap.c)
add_executable (scissor-clear scissor-clear.c)
add_executable (scissor-copypixels scissor-copypixels.c)
add_executable (scissor-depth-clear scissor-depth-clear.c)
add_executable (scissor-many scissor-many.c)
add_executable (scissor-offscreen scissor-offscreen.c)
add_executable (scissor-stencil-clear scissor-stencil-clear.c)
add_executable (stencil-drawpixels stencil-drawpixels.c)
add_executable (stencil-twoside stencil-twoside.c)
add_executable (stencil-wrap stencil-wrap.c)
add_executable (sync_api sync_api.c)
add_executable (texgen texgen.c)
add_executable (texunits texunits.c)
add_executable (timer_query timer_query.c)
add_executable (user-clip user-clip.c)
add_executable (varray-disabled varray-disabled.c)
add_executable (vao-01 vao-01.c)
add_executable (vao-02 vao-02.c)
add_executable (vbo-map-remap vbo-map-remap.c)
add_executable (vbo-subdata-zero vbo-subdata-zero.c)
add_executable (vbo-subdata-sync vbo-subdata-sync.c)
add_executable (windowoverlap windowoverlap.c)
add_executable (object_purgeable-api-pbo object_purgeable-api-pbo.c object_purgeable.c)
add_executable (object_purgeable-api-texture object_purgeable-api-texture.c object_purgeable.c)
add_executable (object_purgeable-api-vbo object_purgeable-api-vbo.c object_purgeable.c)
add_executable (occlusion_query occlusion_query.c)
add_executable (occlusion-query-discard occlusion-query-discard.c)
add_executable (quad-invariance quad-invariance.c)
piglit_include_target_api()
if (MSVC)
add_definitions ( -D__WIN__ -D__MS__ )
ELSEIF (APPLE)
add_definitions ( -D__AGL__ -D__UNIX__ )
FIND_LIBRARY(CARBON_LIBRARY Carbon)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
ELSE ()
add_definitions ( -D__X11__ -D__UNIX__ )
ENDIF ()
include_directories(
${OPENGL_INCLUDE_PATH}
${TIFF_INCLUDE_DIR}
)
add_executable (glean
codedid.cpp
dsconfig.cpp
dsfilt.cpp
dsurf.cpp
environ.cpp
geomrend.cpp
geomutil.cpp
glutils.cpp
main.cpp
misc.cpp
options.cpp
rc.cpp
tapi2.cpp
tbasic.cpp
tbasicperf.cpp
tbinding.cpp
tblend.cpp
tbufferobject.cpp
tchgperf.cpp
tclipflat.cpp
tdepthstencil.cpp
test.cpp
tfbo.cpp
tfpexceptions.cpp
tfragprog1.cpp
tgetstr.cpp
tglsl1.cpp
tlogicop.cpp
tmaskedclear.cpp
tmultitest.cpp
toccluqry.cpp
torthpos.cpp
tpaths.cpp
tpbo.cpp
tpgos.cpp
tpixelformats.cpp
tpointatten.cpp
tpointsprite.cpp
treadpix.cpp
treadpixperf.cpp
trgbtris.cpp
tscissor.cpp
tshaderapi.cpp
tstencil2.cpp
tteapot.cpp
ttexcombine.cpp
ttexcombine4.cpp
ttexcube.cpp
ttexenv.cpp
ttexgen.cpp
ttexrect.cpp
ttexswizzle.cpp
ttexture_srgb.cpp
ttexunits.cpp
tvertarraybgra.cpp
tvertattrib.cpp
tvertprog1.cpp
tvtxperf.cpp
winsys.cpp
gl.cpp
image_misc.cpp
pack.cpp
rdtiff.cpp
reg.cpp
unpack.cpp
wrtiff.cpp
basic.cpp
lex.cpp
timer.cpp
)
target_link_libraries (glean
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${GLUT_glut_LIBRARY}
${X11_X11_LIB}
${TIFF_LIBRARY}
${CARBON_LIBRARY}
)
if (MSVC)
add_definitions ( -D__WIN__ -D__MS__ )
ELSEIF (APPLE)
add_definitions ( -D__AGL__ -D__UNIX__ )
FIND_LIBRARY(CARBON_LIBRARY Carbon)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -m32")
ELSE ()
add_definitions ( -D__X11__ -D__UNIX__ )
ENDIF ()
include_directories(
${OPENGL_INCLUDE_PATH}
${TIFF_INCLUDE_DIR}
)
add_executable (glean
codedid.cpp
dsconfig.cpp
dsfilt.cpp
dsurf.cpp
environ.cpp
geomrend.cpp
geomutil.cpp
glutils.cpp