FindGLUT¶
Find OpenGL Utility Toolkit (GLUT) library and include files.
IMPORTED Targets¶
New in version 3.1.
This module defines the IMPORTED targets:
GLUT::GLUTDefined if the system has GLUT.
Result Variables¶
This module defines the following variables:
GLUT_FOUNDTrue if
glutwas found.GLUT_INCLUDE_DIRSNew in version 3.23.
Where to find GL/glut.h, etc.
GLUT_LIBRARIESList of libraries for using
glut.
Cache Variables¶
This module may set the following variables depending on platform. These variables may optionally be set to help this module find the correct files, but clients should not use these as results:
GLUT_INCLUDE_DIRThe full path to the directory containing
GL/glut.h, not includingGL/.GLUT_glut_LIBRARYThe full path to the glut library.
GLUT_Xmu_LIBRARYThe full path to the Xmu library.
GLUT_Xi_LIBRARYThe full path to the Xi Library.
Obsolete Variables¶
The following variables may also be provided, for backwards compatibility:
GLUT_INCLUDE_DIRThis is one of above Cache Variables, but prior to CMake 3.23 was also a result variable. Prefer to use
GLUT_INCLUDE_DIRSinstead in CMake 3.23 and above.