summaryrefslogtreecommitdiff
path: root/Modules/FindTCL.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-02 11:53:57 -0400
committerKen Martin <ken.martin@kitware.com>2001-05-02 11:53:57 -0400
commit79d7500d6253f82e4e4fd633969eb9f176a41792 (patch)
treed4f18a941badf63ecea025a0dec4cb62a0692293 /Modules/FindTCL.cmake
parentd649156aa1d911e4cfa8546a960bc4461b85ff2b (diff)
downloadcmake-79d7500d6253f82e4e4fd633969eb9f176a41792.tar.gz
finds tk as well
Diffstat (limited to 'Modules/FindTCL.cmake')
-rw-r--r--Modules/FindTCL.cmake28
1 files changed, 27 insertions, 1 deletions
diff --git a/Modules/FindTCL.cmake b/Modules/FindTCL.cmake
index ffd311f34a..0f864b16d5 100644
--- a/Modules/FindTCL.cmake
+++ b/Modules/FindTCL.cmake
@@ -6,6 +6,9 @@
# TCL_LIB_PATH = the path to where the TCL library is
# TCL_LIBRARY = the name of the tcl library found (tcl tcl80 etc)
# TCL_INCLUDE_PATH = the path to where tcl.h can be found
+# TK_LIB_PATH = the path to where the TK library is
+# TK_LIBRARY = the name of the tk library found (tk tk80 etc)
+# TK_INCLUDE_PATH = the path to where tk.h can be found
#
#
@@ -31,5 +34,28 @@ IF (NOT TCL_LIB_PATH)
ENDIF (TCL_LIB_PATH)
ENDIF (NOT TCL_LIB_PATH)
+# try to find the Tk libraries in a few places and names
+IF (NOT TK_LIB_PATH)
+ FIND_LIBRARY(TK_LIB_PATH tk "C:/Program Files/Tcl/lib" /usr/lib /usr/local/lib)
+ IF (TK_LIB_PATH)
+ SET (TK_LIBRARY tk CACHE)
+ ENDIF (TK_LIB_PATH)
+ENDIF (NOT TK_LIB_PATH)
+
+IF (NOT TK_LIB_PATH)
+ FIND_LIBRARY(TK_LIB_PATH tk82 "C:/Program Files/Tcl/lib" /usr/lib /usr/local/lib)
+ IF (TK_LIB_PATH)
+ SET (TK_LIBRARY tk82 CACHE)
+ ENDIF (TK_LIB_PATH)
+ENDIF (NOT TK_LIB_PATH)
+
+IF (NOT TK_LIB_PATH)
+ FIND_LIBRARY(TK_LIB_PATH tk80 "C:/Program Files/Tcl/lib" /usr/lib /usr/local/lib)
+ IF (TK_LIB_PATH)
+ SET (TK_LIBRARY tk80 CACHE)
+ ENDIF (TK_LIB_PATH)
+ENDIF (NOT TK_LIB_PATH)
+
# add in the include path
-FIND_PATH(TCL_INCLUDE_PATH tcl.h /usr/include /usr/local/include)
+FIND_PATH(TCL_INCLUDE_PATH tcl.h "C:/Program Files/Tcl/include" /usr/include /usr/local/include)
+FIND_PATH(TK_INCLUDE_PATH tk.h "C:/Program Files/Tcl/include" /usr/include /usr/local/include)