Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/console/cmake/FindTCL.cmake @ 1151

Last change on this file since 1151 was 1151, checked in by landauf, 17 years ago

added cpptcl and some first tests

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/win
17)
18
19FIND_LIBRARY(TCL_LIBRARY
20  NAMES tcl tcl85 tcl84 tcl8.4 tcl83 tcl8.3 tcl82 tcl8.2 tcl80 tcl8.0
21  PATHS ${TCLTK_POSSIBLE_LIB_PATHS}
22)
23
24GET_FILENAME_COMPONENT(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH)
25
26SET (TCLTK_POSSIBLE_INCLUDE_PATHS
27  /usr/include
28  /usr/local/include
29  /usr/include/tcl8.4
30  /usr/include/tcl8.3
31  /usr/include/tcl8.2
32  /usr/include/tcl8.0
33  "$ENV{ProgramFiles}/Tcl/include"
34  "C:/Program Files/Tcl/include"
35  C:/Tcl/include
36  ../libs/tcl8.5.2/generic
37)
38
39FIND_PATH(TCL_INCLUDE_PATH tcl.h
40  ${TCL_FRAMEWORK_INCLUDES} ${TCLTK_POSSIBLE_INCLUDE_PATHS}
41)
42
43IF(TCL_INCLUDE_PATH)
44  IF(TK_INCLUDE_PATH)
45    IF(TCL_LIBRARY)
46      IF(TK_LIBRARY)
47        SET(TCL_FOUND 1)
48      ENDIF(TK_LIBRARY)
49    ENDIF(TCL_LIBRARY)
50  ENDIF(TK_INCLUDE_PATH)
51ENDIF(TCL_INCLUDE_PATH)
Note: See TracBrowser for help on using the repository browser.