cmake: check for opengl and fail if it isn't found

This commit is contained in:
raburton 2008-01-04 22:26:48 +00:00
parent e341f1c38e
commit 549e5f683f
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
FIND_PACKAGE(OpenGL REQUIRED)
IF(OPENGL_FOUND)
MESSAGE(STATUS "Check for installed OpenGL -- found")
ELSE(OPENGL_FOUND)
MESSAGE(STATUS "Check for installed OpenGL -- not found")
MESSAGE(FATAL_ERROR "OpenGL was not found - it is required to build KiCad")
ENDIF(OPENGL_FOUND)
ADD_DEFINITIONS(-DPCBNEW)
INCLUDE_DIRECTORIES(