From f70bc3a1cd2aaf3979fd8acff43d8866a7b08813 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 17 May 2012 15:22:18 -0700 Subject: cmake: Add option USE_WAFFLE If enabled, Piglit will use Waffle in place of GLUT. The option is disabled by default. As of this patch, however, enabling this option does nothing but require libwaffle. Future patches will integrate Waffl into Piglit. Reviewed-by: Pauli Nieminen Reviewed-by: Jordan Justen Reviewed-by: Anuj Phogat Signed-off-by: Chad Versace --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CMakeLists.txt') 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() -- cgit v1.2.3