diff options
author | Chad Versace <chad.versace@intel.com> | 2011-02-23 13:35:38 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@intel.com> | 2011-02-25 20:42:14 -0800 |
commit | fc493b486b8f9b85af05eb854f04bb581b94250f (patch) | |
tree | ff829d809db186e77958f409b3e31ef81013a069 /cmake | |
parent | c55e20f239d3f0f960fa3e520002004cca55e0a7 (diff) |
cmake: Prepare CMake for GL and GLES2 builds
Add two new CMakeLists, /cmake/target_api/{gl,gles2}/CMakeLists.txt, each
of which builds Piglit with its respective API. (Of course,
gles2/CMakeLists.txt adds no targets because Piglit does not yet support
building with GLES2.)
The toplevel CMakeLists no longer adds subdirectory /tests; that is now
the responsiblity of the API-specific CMakeLists.
Note: This belongs to a series that adds GLES2 support to Piglit.
Signed-off-by: Chad Versace <chad.versace@intel.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/target_api/CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/target_api/gl/CMakeLists.txt | 8 | ||||
-rw-r--r-- | cmake/target_api/gles2/CMakeLists.txt | 7 | ||||
-rw-r--r-- | cmake/target_api/no_api/CMakeLists.txt | 3 |
4 files changed, 21 insertions, 0 deletions
diff --git a/cmake/target_api/CMakeLists.txt b/cmake/target_api/CMakeLists.txt new file mode 100644 index 000000000..814b4cadd --- /dev/null +++ b/cmake/target_api/CMakeLists.txt @@ -0,0 +1,3 @@ +add_subdirectory(gl) +add_subdirectory(gles2) +add_subdirectory(no_api) diff --git a/cmake/target_api/gl/CMakeLists.txt b/cmake/target_api/gl/CMakeLists.txt new file mode 100644 index 000000000..506bb938c --- /dev/null +++ b/cmake/target_api/gl/CMakeLists.txt @@ -0,0 +1,8 @@ +set(piglit_target_api "gl") +add_definitions( + -DUSE_OPENGL + -DUSE_GLUT + ) +add_subdirectory(${piglit_SOURCE_DIR}/tests + ${piglit_BINARY_DIR}/target_api/${piglit_target_api}/tests + ) diff --git a/cmake/target_api/gles2/CMakeLists.txt b/cmake/target_api/gles2/CMakeLists.txt new file mode 100644 index 000000000..d92d41059 --- /dev/null +++ b/cmake/target_api/gles2/CMakeLists.txt @@ -0,0 +1,7 @@ +set(piglit_target_api "gles2") +add_definitions( + -DUSE_OPENGL_ES2 + -DUSE_EGLUT + ) + +# Don't add any targets, because Piglit doesn't support GLES2 yet. diff --git a/cmake/target_api/no_api/CMakeLists.txt b/cmake/target_api/no_api/CMakeLists.txt new file mode 100644 index 000000000..08d7e8b63 --- /dev/null +++ b/cmake/target_api/no_api/CMakeLists.txt @@ -0,0 +1,3 @@ +set(piglit_target_api "no_api") + +# Don't add any targets yet. |