File: vtkDetermineTkResources.cmake

package info (click to toggle)
vtk 5.0.2-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 51,080 kB
  • ctags: 67,442
  • sloc: cpp: 522,627; ansic: 221,292; tcl: 43,377; python: 14,072; perl: 3,102; java: 1,436; yacc: 1,033; sh: 469; lex: 248; makefile: 181; asm: 154
file content (18 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
IF (WIN32)
  IF (NOT BORLAND)
    IF(NOT CYGWIN)
      VTK_GET_TCL_TK_VERSION ("TCL_TK_MAJOR_VERSION" "TCL_TK_MINOR_VERSION")
      IF (TCL_TK_MAJOR_VERSION AND TCL_TK_MINOR_VERSION)
        SET (VTK_TK_RESOURCE_FILE_TRY 
          "${VTK_SOURCE_DIR}/Utilities/TclTk/resources/tk${TCL_TK_MAJOR_VERSION}.${TCL_TK_MINOR_VERSION}/win/rc/tk.rc")
        IF (EXISTS ${VTK_TK_RESOURCE_FILE_TRY})
          GET_FILENAME_COMPONENT(dir ${VTK_TK_RESOURCE_FILE_TRY} PATH)
          SET(VTK_TK_RESOURCES_DIR ${dir} CACHE INTERNAL 
            "The directory where the tk.rc and other Tk resource files can be found. They are required to add the proper resources to a Tk command-line interpreter (vtk.exe for example)")
          INCLUDE_DIRECTORIES(${VTK_TK_RESOURCES_DIR})
        ENDIF (EXISTS ${VTK_TK_RESOURCE_FILE_TRY})
      ENDIF (TCL_TK_MAJOR_VERSION AND TCL_TK_MINOR_VERSION)
    ENDIF(NOT CYGWIN)
  ENDIF (NOT BORLAND)
ENDIF (WIN32)