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.
結果變數¶
該模組定義了以下變數:
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.
快取變數¶
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.
範例¶
Finding Tcl:
find_package(TCL)
另請參見¶
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 thewish
windowing shell command-line executable .