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_FOUNDBoolean indicating whether Tcl was found.
TK_FOUNDBoolean indicating whether Tk was found.
TCLTK_FOUNDBoolean indicating whether both Tcl and Tk were found.
快取變數¶
The following cache variables may also be set:
TCL_LIBRARYThe path to the Tcl library (e.g.,
tcl, etc.).TCL_INCLUDE_PATHThe directory containing
tcl.hand other Tcl-related headers needed to use Tcl.TCL_TCLSHThe path to the
tclshcommand-line executable.TK_LIBRARYThe path to the Tk library (e.g.,
tk, etc.).TK_INCLUDE_PATHThe directory containing
tk.hand other Tk-related headers needed to use Tk.TK_WISHThe path to the
wishwindowing shell command-line executable.
Other Libraries¶
The Tcl Stub Library can be found using the separate FindTclStub
module.
範例¶
Finding Tcl:
find_package(TCL)
另請參見¶
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 .