VTKModules.cmake 9.57 KB
Newer Older
1
#########################################################################
2 3 4
# This file is included in ParaView/ParaViewCore/ServerManager/Default
# to ensure all ParaView needed modules are turned on when building the complete
# application.
5 6 7 8

set(_vtk_mpi_modules
  vtkParallelMPI
  vtkFiltersParallelImaging
9
  vtkIOMPIImage
10 11 12
  vtkFiltersParallelMPI
  # Note: Not in ParaViewXXX.xml but required by a test.
  # Needed for:
13
  #  vtkPStreamTracer
14

15 16 17
  vtkIOParallelNetCDF
  # Needed for:
  #  vtkPNetCDFPOPReader
18 19 20

  vtkFiltersParallelFlowPaths
  #  vtkStreamTracer (Parallel)
21 22 23

  vtkIOMPIParallel
  # vtkMPIMultiBlockPLOT3DReader.
24 25 26

  # Needed for vtkPUnstructuredGridGhostCellsGenerator
  vtkFiltersParallelGeometry
27 28
  )

29 30 31 32 33 34 35 36 37
# Add CosmoTools VTK extensions if enabled.
if (UNIX AND PARAVIEW_ENABLE_COSMOTOOLS)
  list(APPEND _vtk_mpi_modules
    vtkPVVTKExtensionsCosmoTools
    # Needed for:
    #  vtkPVVTKExtensionsCosmoTools
    )
endif()

38 39 40 41 42 43
if (NOT WIN32)
  list(APPEND _vtk_mpi_modules
    vtkFiltersParallelDIY2
    )
endif()

44
set(_vtk_modules
luz paz's avatar
luz paz committed
45
  # VTK modules which ParaView has a explicitly compile
46 47 48 49
  # time dependency on
  vtkRenderingVolume
  vtkRenderingLabel
  vtkRenderingFreeType
50 51
  vtkRenderingVolumeOpenGL2
  vtkRenderingOpenGL2
52 53 54 55 56
  vtkRenderingLOD
  vtkRenderingContext2D
  vtkRenderingAnnotation
  vtkInteractionStyle
  vtkInteractionWidgets
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
  vtkRenderingParallel
  vtkFiltersParallel
  vtkIOParallelExodus
  vtkFiltersParallelStatistics
  vtkIOParallel
  vtkFiltersGeneric
  vtkFiltersHyperTree
  vtkImagingFourier
  vtkImagingMorphological
  vtkIOImport
  vtkIOXML
  vtkIOImage
  vtkIOGeometry
  vtklibxml2
  vtkViewsContext2D
  vtkIOInfovis
73
  vtkFiltersAMR
74 75
  vtkChartsCore
  vtkIOEnSight
76
  vtkTestingRendering
77
  # Needed to for tests that are built even with BUILD_TESTING off!
78
  vtkInteractionImage
79 80 81
  # Modules that are required a runtime generated from:
  #
  # ParaViewFilters.xml
82
  #
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217

  vtkCommonExecutionModel
  # Needed for:
  #  vtkUniformGridPartitioner

  vtkFiltersCore
  # Needed for:
  #  vtkThreshold
  #  vtkAppendPolyData
  #  vtkCellDataToPointData
  #  vtkCleanPolyData
  #  vtkDecimatePro
  #  vtkDelaunay2D
  #  vtkDelaunay3D
  #  vtkElevationFilter
  #  vtkFeatureEdges
  #  vtkMaskPoints
  #  vtkPointDataToCellData
  #  vtkPolyDataNormals
  #  vtkQuadricClustering
  #  vtkSmoothPolyDataFilter
  #  vtkStripper
  #  vtkStructuredGridOutlineFilter
  #  vtkThreshold
  #  vtkTriangleFilter
  #  vtkTubeFilter
  #  vtkDataObjectGenerator

  vtkFiltersExtraction
  # Needed for:
  #  vtkExtractGrid
  #  vtkExtractSelection
  #  vtkExtractBlock
  #  vtkExtractEdges
  #  vtkExtractGeometry
  #  vtkExtractGrid
  #  vtkExtractSelection

  vtkFiltersGeneral
  # Needed for:
  #  vtkWarpVector
  #  vtkTemporalStatistics
  #  vtkBlockIdScalars
  #  vtkBrownianPoints
  #  vtkCellCenters
  #  vtkCellDerivatives
  #  vtkClipClosedSurface
  #  vtkCurvatures
  #  vtkDataSetTriangleFilter
  #  vtkImageDataToPointSet
  #  vtkLevelIdScalars
  #  vtkQuadraturePointInterpolator
  #  vtkQuadraturePointsGenerator
  #  vtkQuadratureSchemeDictionaryGenerator
  #  vtkRectilinearGridToPointSet
  #  vtkReflectionFilter
  #  vtkShrinkFilter
  #  vtkTemporalStatistics
  #  vtkTessellatorFilter
  #  vtkTransformFilter
  #  vtkWarpScalar
  #  vtkWarpVector
  #  vtkYoungsMaterialInterface
  #  vtkTableToPolyData
  #  vtkTableToStructuredGrid
  #  vtkAxes

  vtkFiltersGeneric
  # Needed for:
  #  vtkGenericClip
  #  vtkGenericStreamTracer
  #  vtkGenericGeometryFilter

  vtkFiltersGeometry
  # Needed for:
  #  vtkDataSetSurfaceFilter

  vtkFiltersHybrid
  # Needed for:
  #  vtkFacetReader
  #  vtkTemporalInterpolator
  #  vtkTemporalSnapToTimeStep
  #  vtkTemporalShiftScale
  #  vtkTemporalInterpolator
  #  vtkTemporalSnapToTimeStep
  #  vtkTemporalShiftScale

  vtkFiltersModeling
  # Needed for:
  #  vtkLinearExtrusionFilter
  #  vtkLoopSubdivisionFilter
  #  vtkOutlineFilter
  #  vtkRibbonFilter
  #  vtkRotationalExtrusionFilter

  vtkFiltersParallel
  # Needed for:
  #  vtkProcessIdScalars

  vtkFiltersProgrammable
  # Needed for:
  #  vtkProgrammableFilter
  #  vtkProgrammableFilter

  vtkFiltersSources
  # Needed for:
  #  vtkOutlineCornerFilter
  #  vtkGlyphSource2D
  #  vtkArrowSource
  #  vtkCubeSource
  #  vtkConeSource
  #  vtkCylinderSource
  #  vtkDiskSource
  #  vtkLineSource
  #  vtkOutlineSource
  #  vtkPlaneSource
  #  vtkPointSource
  #  vtkProgrammableSource
  #  vtkSphereSource
  #  vtkSuperquadricSource
  #  vtkTextSource

  vtkFiltersStatistics
  # Needed for:
  #  vtkContingencyStatistics
  #  vtkDescriptiveStatistics
  #  vtkMultiCorrelativeStatistics
  #  vtkPCAStatistics

  vtkFiltersTexture
  # Needed for:
  #  vtkTextureMapToCylinder
  #  vtkTextureMapToPlane
  #  vtkTextureMapToSphere

218
  vtkFiltersFlowPaths
219 220
  # Needed for:
  #  vtkStreamTracer
221
  #  Plugins/SciberQuestToolKit/vtkSQFieldTracer
222 223 224 225

  vtkFiltersVerdict
  # Needed for:
  #  vtkMeshQuality
226 227 228 229 230
  #  vtkCellSizeFilter

  vtkFiltersParallelVerdict
  # Needed for:
  #  vtkPCellSizeFilter
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260

  vtkImagingCore
  # Needed for:
  #  vtkRTAnalyticSource

  vtkImagingHybrid
  # Needed for:
  #  vtkGaussianSplatter

  vtkImagingSources
  # Needed for:
  #  vtkImageMandelbrotSource

  vtkIOExodus
  # Needed for:
  #  vtkExodusIIReader

  vtkIOGeometry
  # Needed for:
  #  vtkTecplotReader
  #  vtkBYUReader
  #  vtkOBJReader
  #  vtkProStarReader
  #  vtkPDBReader
  #  vtkSTLReader
  #  vtkSESAMEReader
  #  vtkMFIXReader
  #  vtkFLUENTReader
  #  vtkOpenFOAMReader
  #  vtkParticleReader
261 262

  vtkIOLegacy
263 264
  #  vtkDataSetWriter

265 266 267 268 269
  vtkIOMovie
  #  vtkGenericMovieWriter
  #  vtkOggTheoraWriter
  #  vtkAVIWriter

270 271 272 273 274 275 276 277
  vtkIOImage
  # Needed for:
  #  vtkDEMReader
  #  vtkGaussianCubeReader
  #  vtkImageReader
  #  vtkMetaImageReader
  #  vtkMetaImageWriter
  #  vtkPNGWriter
278
  #  vtkNrrdReader
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331

  vtkIONetCDF
  # Needed for:
  #  vtkNetCDFReader
  #  vtkSLACReader
  #  vtkSLACParticleReader
  #  vtkNetCDFCAMReader
  #  vtkNetCDFPOPReader
  #  vtkMPASReader

  vtkIOParallel
  # Needed for:
  #  vtkWindBladeReader
  #  vtkPNetCDFPOPReader
  #  vtkPDataSetWriter
  #  vtkExodusIIWriter
  #  vtkEnSightWriter

  vtkIOPLY
  # Needed for:
  #  vtkPLYReader

  vtkIOVPIC
  # Needed for:
  #  vtkVPICReader

  vtkIOXML
  # Needed for:
  #  vtkXMLPolyDataReader
  #  vtkXMLUnstructuredGridReader
  #  vtkXMLImageDataReader
  #  vtkXMLStructuredGridReader
  #  vtkXMLRectilinearGridReader
  #  vtkXMLPPolyDataReader
  #  vtkXMLPUnstructuredGridReader
  #  vtkXMLPImageDataReader
  #  vtkXMLPStructuredGridReader
  #  vtkXMLPRectilinearGridReader
  #  vtkXMLMultiBlockDataReader
  #  vtkXMLHierarchicalBoxDataReader
  #  vtkXMLPolyDataWriter
  #  vtkXMLUnstructuredGridWriter
  #  vtkXMLStructuredGridWriter
  #  vtkXMLRectilinearGridWriter
  #  vtkXMLImageDataWriter
  #  vtkXMLPPolyDataWriter
  #  vtkXMLPUnstructuredGridWriter
  #  vtkXMLPStructuredGridWriter
  #  vtkXMLPRectilinearGridWriter
  #  vtkXMLPImageDataWriter
  #  vtkXMLMultiBlockDataWriter
  #  vtkXMLHierarchicalBoxDataWriter

332 333 334
  vtkIOAMR
  #  Needed for AMR Readers.

335 336 337
  vtkRenderingFreeType
  # Needed for:
  #  vtkVectorText
338

339 340 341 342
  vtkIOParallelLSDyna
  # Note: Not in ParaViewXXX.xml but required by a test.
  # Needed for:
  #  vtkPLSDynaReader
Kyle Lutz's avatar
Kyle Lutz committed
343 344 345 346

  vtkDomainsChemistry
  # Needed for:
  #  vtkMoleculeRepresentation
347

348
  vtkPVServerManagerDefault
349
  # Needed by plugins
350 351 352

  vtkPVAnimation
  # Needed for animation support.
353 354 355

  vtkPVVTKExtensionsPoints
  # Needed for SPH filters.
356

357 358
  vtkIOTecplotTable
  # needed for vtkTecplotReader
359 360 361

  vtkIOTRUCHAS
  # needed for GE/LANL vtkTRUCHASReader
362 363 364

  vtkPVVTKExtensionsCGNSReader
  # needed for CGNS reader support.
365 366 367

  vtkPVVTKExtensionsH5PartReader
  # needed for H5PartReader support
368 369
  )

Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
370 371 372 373 374 375 376 377
if ((NOT WIN32) OR (NOT MSVC) OR (MSVC_VERSION GREATER 1899))
  # MSVC 2015 (1900) or newer is needed if using MVSC for vtkIOMotionFX
  list(APPEND _vtk_modules
    vtkIOMotionFX # needed for vtkMotionFXCFGReader
    )
endif()


378 379 380 381 382
list(APPEND _vtk_modules vtkRenderingLICOpenGL2)
list(APPEND _vtk_modules vtkDomainsChemistryOpenGL2)
list(APPEND _vtk_mpi_modules vtkRenderingParallelLIC)
if(PARAVIEW_ENABLE_PYTHON)
  list (APPEND _vtk_modules vtkPVCinemaReader)
Marcus D. Hanwell's avatar
Marcus D. Hanwell committed
383 384
endif()

385 386 387 388 389 390
if (PARAVIEW_ENABLE_XDMF2)
  list (APPEND _vtk_modules vtkIOXdmf2)
endif()

if (PARAVIEW_ENABLE_XDMF3)
  list (APPEND _vtk_modules vtkIOXdmf3)
391 392 393
  if (PARAVIEW_USE_MPI)
    list (APPEND _vtk_mpi_modules vtkIOParallelXdmf3)
  endif()
394 395
endif ()

396 397 398 399
if (PARAVIEW_ENABLE_GDAL)
  list (APPEND _vtk_modules vtkIOGDAL)
endif()

Dan Lipsa's avatar
Dan Lipsa committed
400 401 402 403
if (PARAVIEW_ENABLE_LAS)
  list (APPEND _vtk_modules vtkIOLAS)
endif()

Dan Lipsa's avatar
Dan Lipsa committed
404 405 406 407
if (PARAVIEW_ENABLE_PDAL)
  list (APPEND _vtk_modules vtkIOPDAL)
endif()

Dan Lipsa's avatar
Dan Lipsa committed
408 409 410 411
if (PARAVIEW_ENABLE_SEGY)
  list (APPEND _vtk_modules vtkIOSegY)
endif()

Dan Lipsa's avatar
Dan Lipsa committed
412

413 414
if (PARAVIEW_USE_MPI)
  list (APPEND _vtk_modules ${_vtk_mpi_modules})
Utkarsh Ayachit's avatar
Utkarsh Ayachit committed
415
endif()
416 417 418 419

if (PARAVIEW_USE_VISITBRIDGE)
  list (APPEND _vtk_modules vtkIOVisItBridge)
endif()
420

Ben Boeckel's avatar
Ben Boeckel committed
421
if (PARAVIEW_ENABLE_MATPLOTLIB)
422
  list (APPEND _vtk_modules vtkRenderingMatplotlib)
423
endif()
424

425 426
if (PARAVIEW_ENABLE_PYTHON)
  list (APPEND _vtk_modules vtkFiltersPython)
427 428 429
  if (PARAVIEW_USE_MPI)
    list(APPEND _vtk_modules vtkParallelMPI4Py)
  endif()
430

431 432
endif()

433 434 435 436
if (PARAVIEW_BUILD_PLUGIN_OpenVR)
  list (APPEND _vtk_modules vtkRenderingOpenVR)
endif()

437 438 439 440
if(PARAVIEW_USE_VTKM)
  list(APPEND _vtk_modules vtkAcceleratorsVTKm)
endif()

441 442 443
# Any module can import this file and add DEPENDS or COMPILE_DEPENDS on this
# list of modules to ensure that these are enabled when the corresponding module
# is enabled.
444 445 446
set(PARAVIEW_ENABLE_VTK_MODULES_AS_NEEDED TRUE
    CACHE BOOL "Turn off to avoid ParaView depending on all used VTK modules.")
mark_as_advanced(PARAVIEW_ENABLE_VTK_MODULES_AS_NEEDED)
447

448 449 450
if (PARAVIEW_ENABLE_VTK_MODULES_AS_NEEDED)
  set (PARAVIEW_DEFAULT_VTK_MODULES ${_vtk_modules})
else ()
451
  set (PARAVIEW_DEFAULT_VTK_MODULES)
452
endif()