Only disable tests and examples if not using OpenGL.

This commit is contained in:
Camilla Berglund 2013-02-11 01:29:45 +01:00
parent d97dddc8c4
commit dca9b2db07

View File

@ -38,9 +38,11 @@ if (GLFW_USE_EGL)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/modules) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake/modules)
find_package(EGL REQUIRED) find_package(EGL REQUIRED)
if (NOT _GLFW_USE_OPENGL)
set(GLFW_BUILD_EXAMPLES OFF) set(GLFW_BUILD_EXAMPLES OFF)
set(GLFW_BUILD_TESTS OFF) set(GLFW_BUILD_TESTS OFF)
message(STATUS "NOTE: Examples and tests are disabled for EGL") message(STATUS "NOTE: Examples and tests require OpenGL")
endif()
else() else()
set(_GLFW_USE_OPENGL 1) set(_GLFW_USE_OPENGL 1)
endif() endif()