Last change
on this file since 1432 was
1211,
checked in by scheusso, 17 years ago
|
merged trunk changes from 1101 to 1202 into camera branch
|
File size:
1.4 KB
|
Rev | Line | |
---|
[1159] | 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 | |
---|
| 8 | GET_FILENAME_COMPONENT(TCL_TCLSH_PATH "${TCL_TCLSH}" PATH) |
---|
| 9 | |
---|
| 10 | SET (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" |
---|
[1160] | 16 | ../libs/tcl8.5.2/unix |
---|
[1159] | 17 | ../libs/tcl8.5.2/win |
---|
| 18 | ) |
---|
| 19 | |
---|
| 20 | FIND_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 | |
---|
| 25 | GET_FILENAME_COMPONENT(TCL_LIBRARY_PATH "${TCL_LIBRARY}" PATH) |
---|
| 26 | |
---|
| 27 | SET (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 | |
---|
| 40 | FIND_PATH(TCL_INCLUDE_PATH tcl.h |
---|
| 41 | ${TCL_FRAMEWORK_INCLUDES} ${TCLTK_POSSIBLE_INCLUDE_PATHS} |
---|
| 42 | ) |
---|
| 43 | |
---|
| 44 | IF(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) |
---|
| 52 | ENDIF(TCL_INCLUDE_PATH) |
---|
Note: See
TracBrowser
for help on using the repository browser.