File: CMakeLists.txt

package info (click to toggle)
vtk6 6.3.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 118,532 kB
  • ctags: 138,251
  • sloc: cpp: 1,443,749; ansic: 113,395; python: 72,383; tcl: 46,998; xml: 8,127; yacc: 4,525; java: 4,239; perl: 3,108; lex: 1,694; sh: 1,093; asm: 471; makefile: 95; objc: 17
file content (46 lines) | stat: -rw-r--r-- 1,487 bytes parent folder | download | duplicates (7)
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
set(vtkTclTk_THIRD_PARTY 1)
set(vtkTckTk_LIBRARIES)
vtk_module_export_info()

# Set if the tcl/tk libs are static
option(VTK_TCL_TK_STATIC "Build with static Tcl/Tk support. TCL_LIBRARY and TK_LIBRARY must point to the corresponding Tcl/Tk static libraries (example, tcl85sx.lib, tk85sx.lib)." OFF)
mark_as_advanced(VTK_TCL_TK_STATIC)

INCLUDE(vtkDependentOption)

# Use Tk Toolkit (with Tcl or Python)
set(VTK_CAN_USE_TK OFF)
set(VTK_USE_TK_DEFAULT ON)
if(VTK_WRAP_PYTHON OR VTK_WRAP_TCL)
  if(NOT VTK_DISABLE_TK_INIT)
    set(VTK_CAN_USE_TK ON)
    if(APPLE)
      if(OSX_SDK_VERSION)
        if(${OSX_SDK_VERSION} VERSION_LESS "10.6")
          # Until OS X 10.6, building Tk with Cocoa was not possible
          # (VTK_USE_COCOA is set in Rendering/OpenGL, but will be cached)
          if(VTK_USE_COCOA)
            set(VTK_CAN_USE_TK OFF)
          endif()
        else()
          # For OS X 10.6, the default system Tk is Cocoa, not Carbon
          # (VTK_USE_COCOA is set in Rendering/OpenGL, but will be cached)
          if(VTK_USE_CARBON)
            set(VTK_USE_TK_DEFAULT OFF)
          endif()
        endif()
      endif()
    endif()
  endif()
endif()
vtk_dependent_option(VTK_USE_TK "Build VTK with Tk support"
                     ${VTK_USE_TK_DEFAULT} "VTK_CAN_USE_TK" OFF)

# The cmake code to find the libs is in vtkWrapTcl
set(VTK_WRAP_TCL_FIND_LIBS 1)
include(vtkWrapTcl)

# Subdirs
ADD_SUBDIRECTORY(internals)
ADD_SUBDIRECTORY(lib)
ADD_SUBDIRECTORY(resources)