summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2012-05-18 15:06:11 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-05-23 13:03:17 -0700
commit8663c199421249e34b332b4ec427a9c2b0151cce (patch)
tree381dcfe6f58593628be598caf650c0ad61536e97 /cmake
parent941141e6e094163896fc44a5b1d47621ec2037bf (diff)
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: Pauli Nieminen <pauli.nieminen@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/target_api/CMakeLists.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/cmake/target_api/CMakeLists.txt b/cmake/target_api/CMakeLists.txt
index f0c0e1388..57b28c730 100644
--- a/cmake/target_api/CMakeLists.txt
+++ b/cmake/target_api/CMakeLists.txt
@@ -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)