Find OpenGL Utility Toolkit (GLUT) library and include files.
Added in version 3.1.
This module defines the IMPORTED targets:
GLUT::GLUT Defined if the system has GLUT.
This module defines the following variables:
GLUT_FOUND True if glut was found.
GLUT_INCLUDE_DIRS Added in version 3.23.
Where to find GL/glut.h, etc.
GLUT_LIBRARIES List 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_DIR The full path to the directory containing GL/glut.h, not including GL/.
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.
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.
© 2000–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/module/FindGLUT.html