FindOpenGL¶
FindModule for OpenGL and GLU.
Result Variables¶
This module sets the following variables:
- OPENGL_FOUND
- True, if the system has OpenGL. 
- OPENGL_XMESA_FOUND
- True, if the system has XMESA. 
- OPENGL_GLU_FOUND
- True, if the system has GLU. 
- OPENGL_INCLUDE_DIR
- Path to the OpenGL include directory. 
- OPENGL_LIBRARIES
- Paths to the OpenGL and GLU libraries. 
If you want to use just GL you can use these values:
- OPENGL_gl_LIBRARY
- Path to the OpenGL library. 
- OPENGL_glu_LIBRARY
- Path to the GLU library. 
OSX Specific¶
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.
