Commit 8663c199 authored by Chad Versace's avatar Chad Versace

cmake: Add options BUILD_GLES{1,2} tests [v2]

Default value for each is OFF.

Before this patch, Piglit automatically built the GLES1 tests if libEGL
and libGLESv1_CM were found. Ditto for GLES2 and libGLESv2. If these
libraries were installed on the system, it was impossible to disable the
tests.

This patch adds options to explicitly enable the tests.

v2: Fix typo GLES1 -> GLES2.
Reviewed-by: default avatarPauli Nieminen <pauli.nieminen@intel.com>
Reviewed-by: Jordan Justen's avatarJordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat's avatarAnuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
parent 941141e6
......@@ -14,6 +14,10 @@ find_package(GLUT REQUIRED)
find_package(PNG REQUIRED)
find_package(X11)
option(BUILD_GLES1_TESTS "Build tests for OpenGL ES1" OFF)
option(BUILD_GLES2_TESTS "Build tests for OpenGL ES2" OFF)
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
option(BUILD_GLX_TESTS "Build tests that require GLX" ON)
ELSE()
......
......@@ -23,6 +23,13 @@
# Chad Versace <chad.versace@intel.com>
add_subdirectory(gl)
add_subdirectory(gles1)
add_subdirectory(gles2)
if(BUILD_GLES1_TESTS)
add_subdirectory(gles1)
endif(BUILD_GLES1_TESTS)
if(BUILD_GLES2_TESTS)
add_subdirectory(gles2)
endif(BUILD_GLES2_TESTS)
add_subdirectory(no_api)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment