aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6774a7e7..3c2b99a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,14 @@ find_package(X11)
option(BUILD_GLES1_TESTS "Build tests for OpenGL ES1" OFF)
option(BUILD_GLES2_TESTS "Build tests for OpenGL ES2" OFF)
+option(USE_WAFFLE "Use Waffle in place of GLUT" OFF)
+if(USE_WAFFLE)
+ # FIXME: Specify version requirements for Waffle.
+ find_package(Waffle REQUIRED)
+ add_definitions(-DUSE_WAFFLE)
+ include_directories("${WAFFLE_INCLUDE_DIR}")
+endif(USE_WAFFLE)
+
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
option(BUILD_GLX_TESTS "Build tests that require GLX" ON)
ELSE()