FindGLUT — CMake 3.22.2 Documentation

# 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.