blob: 0f864b16d555fceb9cd8ffbdf3bb4f2dc2a380e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#
# 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
# 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
#
#
# 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)
# 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 "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)
|