File: vtkUseX.cmake

package info (click to toggle)
vtk6 6.1.0%2Bdfsg2-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 165,164 kB
  • ctags: 226,428
  • sloc: cpp: 1,354,490; ansic: 730,748; python: 227,134; tcl: 48,285; xml: 8,290; yacc: 4,832; java: 3,827; perl: 3,108; lex: 1,809; sh: 1,437; asm: 471; makefile: 229
file content (27 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (8)
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
# Determine if X11 should be included.
# This provides a option to the user to not use X11 on systems where
# applicable. If systems where X11 is found and is not optional,
# it does not provide a CMake option instead the variable VTK_USE_X
# if set to ON.
FIND_PACKAGE(X11)
SET(VTK_USE_X_OPTIONAL 0)
SET(VTK_USE_X_DEFAULT 0)
IF(X11_FOUND)
  IF(CYGWIN)
    SET(VTK_USE_X_OPTIONAL 1)
  ENDIF(CYGWIN)
  IF(APPLE)
    SET(VTK_USE_X_OPTIONAL 1)
  ELSE(APPLE)
    IF (VTK_OPENGL_HAS_OSMESA)
      SET(VTK_USE_X_OPTIONAL 1)
    ENDIF (VTK_OPENGL_HAS_OSMESA)
    SET(VTK_USE_X_DEFAULT ${VTK_USE_RENDERING})
  ENDIF(APPLE)
ENDIF(X11_FOUND)

VTK_DEPENDENT_OPTION(VTK_USE_X
                     "Build classes for the X11 window system."
                     "${VTK_USE_X_DEFAULT}"
                     "X11_FOUND;VTK_USE_RENDERING;VTK_USE_X_OPTIONAL"
                     "${VTK_USE_X_DEFAULT}")