summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
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)