Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/cmake/FindTCL.cmake @ 1202

Last change on this file since 1202 was 1160, checked in by FelixSchulthess, 17 years ago

teeh seeh el

File size: 1.4 KB
Line 
1# - Find Tcl includes and libraries.
2# This module finds if TCL is installed and determines where the
3# include files and libraries are. It also determines what the name of
4# the library is. This code sets the following variables:
5#  TCL_LIBRARY        = path to Tcl library (tcl tcl80)
6#  TCL_INCLUDE_PATH   = path to where tcl.h can be found
7
8GET_FILENAME_COMPONENT(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH)
9
10SET (TCLTK_POSSIBLE_LIB_PATHS
11  /usr/lib 
12  /usr/local/lib
13  "$ENV{ProgramFiles}/Tcl/Lib"
14  "C:/Program Files/Tcl/lib" 
15  "C:/Tcl/lib" 
16  ../libs/tcl8.5.2/unix
17  ../libs/tcl8.5.2/win
18)
19
20FIND_LIBRARY(TCL_LIBRARY
21  NAMES tcl tcl85 tcl8.5 tcl84 tcl8.4 tcl83 tcl8.3 tcl82 tcl8.2 tcl80 tcl8.0
22  PATHS ${TCLTK_POSSIBLE_LIB_PATHS}
23)
24
25GET_FILENAME_COMPONENT(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH)
26
27SET (TCLTK_POSSIBLE_INCLUDE_PATHS
28  /usr/include
29  /usr/local/include
30  /usr/include/tcl8.4
31  /usr/include/tcl8.3
32  /usr/include/tcl8.2
33  /usr/include/tcl8.0
34  "$ENV{ProgramFiles}/Tcl/include"
35  "C:/Program Files/Tcl/include"
36  C:/Tcl/include
37  ../libs/tcl8.5.2/generic
38)
39
40FIND_PATH(TCL_INCLUDE_PATH tcl.h
41  ${TCL_FRAMEWORK_INCLUDES} ${TCLTK_POSSIBLE_INCLUDE_PATHS}
42)
43
44IF(TCL_INCLUDE_PATH)
45  IF(TK_INCLUDE_PATH)
46    IF(TCL_LIBRARY)
47      IF(TK_LIBRARY)
48        SET(TCL_FOUND 1)
49      ENDIF(TK_LIBRARY)
50    ENDIF(TCL_LIBRARY)
51  ENDIF(TK_INCLUDE_PATH)
52ENDIF(TCL_INCLUDE_PATH)
Note: See TracBrowser for help on using the repository browser.