summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-09-05 10:45:01 +0800
committerPaul Berry <stereotype441@gmail.com>2011-09-09 11:28:19 -0700
commit36872a46ae86bcc0ad29d1f90b368b564bc2b3e5 (patch)
treedd344f879d454485305ea57e77d7f653daf4e608 /cmake
parentbe0e2a318bddabfce5e1b1699f36ac3811086556 (diff)
cmake: add gles1 as a valid target API
This commit adds the infrastructure for writing GLES1 specific tests. Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/target_api/CMakeLists.txt3
-rw-r--r--cmake/target_api/gles1/CMakeLists.txt11
2 files changed, 13 insertions, 1 deletions
diff --git a/cmake/target_api/CMakeLists.txt b/cmake/target_api/CMakeLists.txt
index ea9adf511..eecbd3516 100644
--- a/cmake/target_api/CMakeLists.txt
+++ b/cmake/target_api/CMakeLists.txt
@@ -30,7 +30,7 @@
#
function(piglit_include_target_api)
set(valid_api FALSE)
- foreach(api "gl" "gles2" "no_api")
+ foreach(api "gl" "gles1" "gles2" "no_api")
if(piglit_target_api STREQUAL ${api})
set(valid_api TRUE)
break()
@@ -46,5 +46,6 @@ function(piglit_include_target_api)
endfunction(piglit_include_target_api)
add_subdirectory(gl)
+add_subdirectory(gles1)
add_subdirectory(gles2)
add_subdirectory(no_api)
diff --git a/cmake/target_api/gles1/CMakeLists.txt b/cmake/target_api/gles1/CMakeLists.txt
new file mode 100644
index 000000000..ed50d1c70
--- /dev/null
+++ b/cmake/target_api/gles1/CMakeLists.txt
@@ -0,0 +1,11 @@
+set(piglit_target_api "gles1")
+
+if(OPENGL_gles1_LIBRARY AND OPENGL_egl_LIBRARY)
+ add_definitions(
+ -DUSE_OPENGL_ES1
+ -DUSE_EGLUT
+ )
+ add_subdirectory(${piglit_SOURCE_DIR}/tests
+ ${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests
+ )
+endif(OPENGL_gles1_LIBRARY AND OPENGL_egl_LIBRARY)