FindTCL — CMake 4.4.3 Documentation

# 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.h` and other Tcl-related headers needed to use Tcl.

`TCL_TCLSH`

  The path to the `tclsh` command-line executable.

`TK_LIBRARY`

  The path to the Tk library (e.g., `tk`, etc.).

`TK_INCLUDE_PATH`

  The directory containing `tk.h` and other Tk-related headers needed to use Tk.

`TK_WISH`

  The path to the `wish` windowing 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 `FindTclsh` module to find the Tcl shell command-line executable.

- The `FindTclStub` module to find the Tcl Stubs Library.

- The `FindWish` module to find the `wish` windowing shell command-line executable .