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
fluid2executable is found. This variable can be used, for example, to conditionally invoke thefltk_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
fluid2binary 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
FindFLTKmodule to find FLTK in a version-agnostic way.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/module/FindFLTK2.html