aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-09-19 09:17:21 +0200
committerEric Anholt <eric@anholt.net>2012-09-19 09:17:46 +0200
commit1d22d002ca6f857c56464cf8741b81964b64f1b1 (patch)
tree4027879ba9827b9190d3f083a31268971e64ea0e /CMakeLists.txt
parent460fc1e6439d55efe72ba2385959dcd5c2b87e21 (diff)
parent7a37e62604b3b45916be505364d1f72a1082a5fe (diff)
downloadpiglit-1d22d002ca6f857c56464cf8741b81964b64f1b1.tar.gz
Merge remote-tracking branch 'blaz/opencl-request-v2'
This introduces OpenCL testing to piglit under tests/all_cl.tests.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1cb4fb7..5ee28d2a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,6 +19,7 @@ find_package(X11)
option(BUILD_GLES1_TESTS "Build tests for OpenGL ES1" OFF)
option(BUILD_GLES2_TESTS "Build tests for OpenGL ES2" OFF)
+option(BUILD_CL_TESTS "Build tests for OpenCL" OFF)
option(USE_WAFFLE "Use Waffle in place of GLUT" OFF)
if(USE_WAFFLE)
@@ -36,6 +37,10 @@ if(BUILD_GLES2_TESTS AND NOT USE_WAFFLE)
message(FATAL_ERROR "Option BUILD_GLES2_TESTS requires USE_WAFFLE")
endif(BUILD_GLES2_TESTS AND NOT USE_WAFFLE)
+if(BUILD_CL_TESTS)
+ find_package(OpenCL REQUIRED)
+endif(BUILD_CL_TESTS)
+
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
add_definitions(-DPIGLIT_HAS_X11)
option(BUILD_GLX_TESTS "Build tests that require GLX" ON)