summaryrefslogtreecommitdiffstats
path: root/Modules/FindTCL.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-05-01 15:28:51 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-05-01 15:28:51 (GMT)
commit6847fe3705f067060bb5c757cc4e016e37b50329 (patch)
treeff1a7292958b61eeb89f69d8a6c5d65807720f4f /Modules/FindTCL.cmake
parenta99dfa60aed8b4446949c3f55e7b3ea517042bb4 (diff)
downloadCMake-6847fe3705f067060bb5c757cc4e016e37b50329.zip
CMake-6847fe3705f067060bb5c757cc4e016e37b50329.tar.gz
CMake-6847fe3705f067060bb5c757cc4e016e37b50329.tar.bz2
first module
Diffstat (limited to 'Modules/FindTCL.cmake')
-rw-r--r--Modules/FindTCL.cmake35
1 files changed, 35 insertions, 0 deletions
diff --git a/Modules/FindTCL.cmake b/Modules/FindTCL.cmake
new file mode 100644
index 0000000..ffd311f
--- /dev/null
+++ b/Modules/FindTCL.cmake
@@ -0,0 +1,35 @@
+#
+# This module finds if TCL is installed and determines where the
+# include files and libraries are. It also determines what the name of
+# the library is. This code sets the following variables:
+#
+# 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
+#
+#
+
+# try to find the Tcl libraries in a few places and names
+IF (NOT TCL_LIB_PATH)
+ FIND_LIBRARY(TCL_LIB_PATH tcl "C:/Program Files/Tcl/lib" /usr/lib /usr/local/lib)
+ IF (TCL_LIB_PATH)
+ SET (TCL_LIBRARY tcl CACHE)
+ ENDIF (TCL_LIB_PATH)
+ENDIF (NOT TCL_LIB_PATH)
+
+IF (NOT TCL_LIB_PATH)
+ FIND_LIBRARY(TCL_LIB_PATH tcl82 "C:/Program Files/Tcl/lib" /usr/lib /usr/local/lib)
+ IF (TCL_LIB_PATH)
+ SET (TCL_LIBRARY tcl82 CACHE)
+ ENDIF (TCL_LIB_PATH)
+ENDIF (NOT TCL_LIB_PATH)
+
+IF (NOT TCL_LIB_PATH)
+ FIND_LIBRARY(TCL_LIB_PATH tcl80 "C:/Program Files/Tcl/lib" /usr/lib /usr/local/lib)
+ IF (TCL_LIB_PATH)
+ SET (TCL_LIBRARY tcl80 CACHE)
+ ENDIF (TCL_LIB_PATH)
+ENDIF (NOT TCL_LIB_PATH)
+
+# add in the include path
+FIND_PATH(TCL_INCLUDE_PATH tcl.h /usr/include /usr/local/include)