diff options
author | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-03-11 12:16:21 +0000 |
---|---|---|
committer | Dylan Noblesmith <nobled@dreamwidth.org> | 2012-04-29 11:05:46 +0000 |
commit | 8dc8c51ec54f209331d0c1b3a895909787819aa9 (patch) | |
tree | 072d321234560c2db1b5573b342bf2dd3c4c4c10 /tests | |
parent | 37d5d77bc1751e6e8f7d9f8c2706868314ec68cb (diff) |
cmake: add an option for building GLX tests
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/glx/CMakeLists.gl.txt | 4 | ||||
-rw-r--r-- | tests/spec/glx_arb_create_context/CMakeLists.gl.txt | 4 | ||||
-rw-r--r-- | tests/spec/glx_ext_import_context/CMakeLists.gl.txt | 4 | ||||
-rw-r--r-- | tests/util/CMakeLists.gl.txt | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/glx/CMakeLists.gl.txt b/tests/glx/CMakeLists.gl.txt index c3d4db33a..f3dccf7a0 100644 --- a/tests/glx/CMakeLists.gl.txt +++ b/tests/glx/CMakeLists.gl.txt @@ -13,7 +13,7 @@ link_libraries ( ${X11_X11_LIB} ) -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(BUILD_GLX_TESTS) include_directories( ${GLPROTO_INCLUDE_DIRS} ) @@ -61,6 +61,6 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") piglit_add_executable (glx-copy-sub-buffer glx-copy-sub-buffer.c) piglit_add_executable (glx-query-drawable glx-query-drawable.c) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +ENDIF(BUILD_GLX_TESTS) # vim: ft=cmake: diff --git a/tests/spec/glx_arb_create_context/CMakeLists.gl.txt b/tests/spec/glx_arb_create_context/CMakeLists.gl.txt index a3d58a209..585dbd62b 100644 --- a/tests/spec/glx_arb_create_context/CMakeLists.gl.txt +++ b/tests/spec/glx_arb_create_context/CMakeLists.gl.txt @@ -13,7 +13,7 @@ link_libraries ( ${X11_X11_LIB} ) -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(BUILD_GLX_TESTS) include_directories( ${GLPROTO_INCLUDE_DIRS} ) @@ -28,6 +28,6 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") piglit_add_executable (glx-create-context-valid-attribute-empty valid-attribute-empty.c common.c) piglit_add_executable (glx-create-context-valid-attribute-null valid-attribute-null.c common.c) piglit_add_executable (glx-create-context-valid-flag-forward-compatible valid-flag-forward-compatible.c common.c) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +ENDIF(BUILD_GLX_TESTS) # vim: ft=cmake: diff --git a/tests/spec/glx_ext_import_context/CMakeLists.gl.txt b/tests/spec/glx_ext_import_context/CMakeLists.gl.txt index 7df4cd95e..425b1f7a3 100644 --- a/tests/spec/glx_ext_import_context/CMakeLists.gl.txt +++ b/tests/spec/glx_ext_import_context/CMakeLists.gl.txt @@ -13,7 +13,7 @@ link_libraries ( ${X11_X11_LIB} ) -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(BUILD_GLX_TESTS) include_directories( ${GLPROTO_INCLUDE_DIRS} ) @@ -26,6 +26,6 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") piglit_add_executable (glx-make-current-multi-process make-current-multi-process.c common.c) piglit_add_executable (glx-make-current-single-process make-current-single-process.c common.c) piglit_add_executable (glx-query-context-info-ext query-context-info.c common.c) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +ENDIF(BUILD_GLX_TESTS) # vim: ft=cmake: diff --git a/tests/util/CMakeLists.gl.txt b/tests/util/CMakeLists.gl.txt index 1052c2699..7790e4f44 100644 --- a/tests/util/CMakeLists.gl.txt +++ b/tests/util/CMakeLists.gl.txt @@ -16,7 +16,7 @@ set(UTIL_SOURCES sized-internalformats.c ) -IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +IF(BUILD_GLX_TESTS) # XXX: This is currently duplicated wherever tests # include "piglit-glx-util.h". Is it possible to refactor it? include_directories( @@ -40,7 +40,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") ${UTIL_SOURCES} piglit-glx-util.c ) -ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +ENDIF(BUILD_GLX_TESTS) piglit_add_library (piglitutil ${UTIL_SOURCES} |