diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2001-05-25 01:11:27 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2001-05-25 01:11:27 (GMT) |
commit | cc12fb6ff86dd0b2b7df0f9d94eb46b6a1dcd7c2 (patch) | |
tree | 3433130225d685f6f1fb7d574e1164577ca049e9 /Modules | |
parent | d8354e65c90159e388b794d0b7bcd5ac539d3524 (diff) | |
download | CMake-cc12fb6ff86dd0b2b7df0f9d94eb46b6a1dcd7c2.zip CMake-cc12fb6ff86dd0b2b7df0f9d94eb46b6a1dcd7c2.tar.gz CMake-cc12fb6ff86dd0b2b7df0f9d94eb46b6a1dcd7c2.tar.bz2 |
Try to find tclsh or wish and use that path to find the include or lib directory. TK_INTERNAL_PATH is searched too (path to tkWinInt.h)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindTCL.cmake | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Modules/FindTCL.cmake b/Modules/FindTCL.cmake index 4febba3..0ba13b9 100644 --- a/Modules/FindTCL.cmake +++ b/Modules/FindTCL.cmake @@ -5,10 +5,25 @@ # # TCL_LIBRARY = the full path to the tcl library found (tcl tcl80 etc) # TCL_INCLUDE_PATH = the path to where tcl.h can be found +# TCL_TCLSH = the full path to the tclsh binary (tcl tcl80 etc) # TK_LIBRARY = the full path to the tk library found (tk tk80 etc) # TK_INCLUDE_PATH = the path to where tk.h can be found +# TK_INTERNAL_PATH = the path to where tkWinInt.h can be found +# TK_WISH = the full path to the wish binary (wish wish80 etc) # +FIND_PROGRAM(TCL_TCLSH + NAMES tclsh tclsh84 tclsh83 tclsh82 tclsh80 +) + +FIND_PROGRAM(TK_WISH + NAMES wish wish84 wish83 wish82 wish80 +) + +GET_FILENAME_COMPONENT(TCL_TCLSH_PATH ${TCL_TCLSH} PATH) + +GET_FILENAME_COMPONENT(TK_WISH_PATH ${TK_WISH} PATH) + FIND_LIBRARY(TCL_LIBRARY NAMES tcl tcl84 tcl83 tcl82 tcl80 PATHS @@ -19,6 +34,8 @@ FIND_LIBRARY(TCL_LIBRARY [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.3;Root]/lib [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.2;Root]/lib [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.0;Root]/lib + "${TCL_TCLSH_PATH}/../lib" + "${TK_WISH_PATH}/../lib" ) FIND_LIBRARY(TK_LIBRARY @@ -31,6 +48,8 @@ FIND_LIBRARY(TK_LIBRARY [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.3;Root]/lib [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.2;Root]/lib [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.0;Root]/lib + "${TCL_TCLSH_PATH}/../lib" + "${TK_WISH_PATH}/../lib" ) FIND_PATH(TCL_INCLUDE_PATH tcl.h @@ -41,6 +60,8 @@ FIND_PATH(TCL_INCLUDE_PATH tcl.h [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.3;Root]/include [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.2;Root]/include [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.0;Root]/include + "${TCL_TCLSH_PATH}/../include" + "${TK_WISH_PATH}/../include" ) FIND_PATH(TK_INCLUDE_PATH tk.h @@ -51,4 +72,18 @@ FIND_PATH(TK_INCLUDE_PATH tk.h [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.3;Root]/include [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.2;Root]/include [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.0;Root]/include + "${TCL_TCLSH_PATH}/../include" + "${TK_WISH_PATH}/../include" +) + +FIND_PATH(TK_INTERNAL_PATH tkWinInt.h + /usr/include + /usr/local/include + "C:/Program Files/Tcl/include" + [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.4;Root]/include + [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.3;Root]/include + [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.2;Root]/include + [HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.0;Root]/include + "${TCL_TCLSH_PATH}/../include" + "${TK_WISH_PATH}/../include" ) |