FindGLUT¶
Find OpenGL Utility Toolkit (GLUT) library and include files.
IMPORTED Targets¶
New in version 3.1.
This module defines the IMPORTED
targets:
GLUT::GLUT
- Defined if the system has GLUT.
Result Variables¶
This module defines the following variables:
GLUT_FOUND
- True if
glut
was found. GLUT_INCLUDE_DIRS
New in version 3.23.
Where to find GL/glut.h, etc.
GLUT_LIBRARIES
- List 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_DIR
- The full path to the directory containing
GL/glut.h
, not includingGL/
. GLUT_glut_LIBRARY
- The full path to the glut library.
GLUT_Xmu_LIBRARY
- The full path to the Xmu library.
GLUT_Xi_LIBRARY
- The full path to the Xi Library.
Obsolete Variables¶
The following variables may also be provided, for backwards compatibility:
GLUT_INCLUDE_DIR
- This 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.