FindModule for OpenGL and GLU.
This module defines the IMPORTED
targets:
OpenGL::GL
OpenGL::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–2017 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.9/module/FindOpenGL.html