FindFLTK2 — CMake 4.2.6 Documentation

# FindFLTK2

Note

This module is specifically for FLTK version 2.x. The 2.0 series was originally a development branch intended as the next major version of FLTK. However, it never reached stable release status, and active development has shifted back to the FLTK 1.x branch. For finding FLTK, including stable and modern versions, use the `FindFLTK` module instead.

Finds the Fast Light Toolkit (FLTK) version 2.x, a cross-platform toolkit for GUI development:

    find_package(FLTK2 [...])

## Result Variables

This module defines the following variables:

`FLTK2_FOUND`

  Boolean indicating whether FLTK 2.x was found.

`FLTK2_LIBRARIES`

  Libraries needed to link against to use FLTK 2.x.

`FLTK2_WRAP_UI`

  Boolean indicating whether the `fluid2` executable is found. This variable can be used, for example, to conditionally invoke the `fltk_wrap_ui()` command if it is needed and available.

## Cache Variables

The following cache variables may also be set:

`FLTK2_FLUID_EXECUTABLE`

  The path to the `fluid2` binary tool.

`FLTK2_INCLUDE_DIR`

  The directory containing header files needed to use FLTK 2.x.

`FLTK2_BASE_LIBRARY`

  The path to the FLTK 2.x library (`fltk2`).

`FLTK2_GL_LIBRARY`

  The path to the FLTK 2.x OpenGL compatibility library (`fltk2_gl`).

`FLTK2_IMAGES_LIBRARY`

  The path to the FLTK 2.x Images library (`fltk2_images`).

## Examples

Finding FLTK version 2:

    find_package(FLTK2)

## See Also

- The `FindFLTK` module to find FLTK in a version-agnostic way.