File: vtkWheelFinalization.cmake

package info (click to toggle)
vtk9 9.5.2%2Bdfsg4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,616 kB
  • sloc: cpp: 2,340,827; ansic: 327,116; python: 114,881; yacc: 4,104; java: 3,977; sh: 3,032; xml: 2,771; perl: 2,189; lex: 1,787; javascript: 1,261; makefile: 189; objc: 153; tcl: 59
file content (63 lines) | stat: -rw-r--r-- 1,541 bytes parent folder | download | duplicates (3)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
set(vtk_features)

if (TARGET VTK::WebPython)
  list(APPEND vtk_features "web")
endif ()

if (TARGET VTK::mpi)
  list(APPEND vtk_features "mpi")
endif ()

if (TARGET VTK::RenderingCore)
  list(APPEND vtk_features "rendering")
endif ()

if (TARGET VTK::RenderingOpenVR)
  list(APPEND vtk_features "openvr")
endif ()

if (TARGET VTK::RenderingOpenXR)
  list(APPEND vtk_features "openxr")
endif ()

if (TARGET VTK::RenderingOpenGL2)
  set(has_onscreen OFF)
  set(has_offscreen ON)
  list(APPEND vtk_features "rendering-offscreen-osmesa")
  if (VTK_USE_X)
    list(APPEND vtk_features "rendering-onscreen-x11")
    set(has_onscreen ON)
  endif ()
  if (VTK_USE_COCOA)
    list(APPEND vtk_features "rendering-onscreen-cocoa")
    set(has_onscreen ON)
  endif ()
  if (WIN32)
    list(APPEND vtk_features "rendering-onscreen-windows")
    set(has_onscreen ON)
  endif ()

  if (has_onscreen)
    list(APPEND vtk_features "rendering-onscreen")
  endif ()
  if (has_offscreen)
    list(APPEND vtk_features "rendering-offscreen")
  endif ()

  if (VTK_OPENGL_USE_GLES)
    list(APPEND vtk_features "rendering-backend-gles")
  else ()
    list(APPEND vtk_features "rendering-backend-gl")
  endif ()
  if (VTK_OPENGL_HAS_EGL)
    list(APPEND vtk_features "rendering-backend-egl")
  endif ()
endif ()

set(vtk_feature_entries "")
foreach (vtk_feature IN LISTS vtk_features)
  string(APPEND vtk_feature_entries
    "    '${vtk_feature}': [],\n")
endforeach ()
file(WRITE "${CMAKE_BINARY_DIR}/vtk_features.py"
  "FEATURES = {\n${vtk_feature_entries}}\n")