FindGLUT

From Get docs
Cmake/docs/3.21/module/findglut


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 sets the following variables:

GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.
GLUT_LIBRARIES, the libraries to link against
GLUT_FOUND, If false, do not try to use GLUT.

Also defined, but not for general use are:

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.

New in version 3.13: Debug and Release variants are found separately.


© 2000–2021 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.21/module/FindGLUT.html