Find OpenGL Utility Toolkit (GLUT) library and include files.
Added in version 3.1.
This module defines the IMPORTED targets:
GLUT::GLUTDefined if the system has GLUT.
This module defines the following variables:
GLUT_FOUNDTrue if glut was found.
GLUT_INCLUDE_DIRSAdded in version 3.23.
Where to find GL/glut.h, etc.
GLUT_LIBRARIESList of libraries for using glut.
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 including GL/.
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.
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_DIRS instead
in CMake 3.23 and above.