FindModule for OpenGL and GLU.
This module sets the following variables:
OPENGL_FOUND
OPENGL_XMESA_FOUND
OPENGL_GLU_FOUND
OPENGL_INCLUDE_DIR
OPENGL_LIBRARIES
If you want to use just GL you can use these values:
OPENGL_gl_LIBRARY
OPENGL_glu_LIBRARY
On OSX default to using the framework version of OpenGL. People will have to change the cache values of OPENGL_glu_LIBRARY and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX.
© 2000–2016 Kitware, Inc.
© 2000–2011 Insight Software Consortium
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.5/module/FindOpenGL.html