FindTCL
Finds the Tcl (Tool Command Language), dynamic programming language:
find_package(TCL [...])
This module locates a Tcl installation, including its include directories and libraries, and determines the appropriate Tcl library name for linking. As part of the Tcl ecosystem, it also finds Tk, a GUI toolkit that provides a library of basic widgets for building graphical user interfaces.
Result Variables
This module defines the following variables:
-
TCL_FOUND -
Boolean indicating whether Tcl was found.
-
TK_FOUND -
Boolean indicating whether Tk was found.
-
TCLTK_FOUND -
Boolean indicating whether both Tcl and Tk were found.
Cache Variables
The following cache variables may also be set:
-
TCL_LIBRARY -
The path to the Tcl library (e.g.,
tcl, etc.). -
TCL_INCLUDE_PATH -
The directory containing
tcl.hand other Tcl-related headers needed to use Tcl. -
TCL_TCLSH -
The path to the
tclshcommand-line executable. -
TK_LIBRARY -
The path to the Tk library (e.g.,
tk, etc.). -
TK_INCLUDE_PATH -
The directory containing
tk.hand other Tk-related headers needed to use Tk. -
TK_WISH -
The path to the
wishwindowing shell command-line executable.
Other Libraries
The Tcl Stub Library can be found using the separate FindTclStub module.
Examples
Finding Tcl:
find_package(TCL)
See Also
- The
FindTclshmodule to find the Tcl shell command-line executable. - The
FindTclStubmodule to find the Tcl Stubs Library. - The
FindWishmodule to find thewishwindowing shell command-line executable .
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/module/FindTCL.html