set(optional_test_depends)
if("${Module_vtkRenderingParallel}" AND "${Module_vtkParallelMPI}")
  set(optional_test_depends "vtkRenderingParallel;vtkParallelMPI")
endif()
vtk_module(vtkRenderingOSPRay
  IMPLEMENTS
    vtkRenderingVolume
  TEST_DEPENDS
    vtkFiltersTexture
    vtkInteractionStyle
    vtkIOGeometry
    vtkIOPLY
    vtkRenderingAnnotation
    vtkTestingCore
    vtkTestingRendering
    ${optional_test_depends}
    # Dependencies for volume rendering tests
    vtkRenderingVolume
    vtkRenderingVolumeOpenGL2
    vtkFiltersAMR
    vtkFiltersCore
    vtkFiltersHybrid
    vtkFiltersModeling
    vtkImagingSources
    vtkImagingGeneral
    vtkImagingHybrid
    vtkInteractionStyle
    vtkIOLegacy
    vtkRenderingFreeType
  EXCLUDE_FROM_ALL
  DEPENDS
    vtkCommonDataModel
    vtkRenderingOpenGL2
    vtkRenderingCore
    vtkRenderingSceneGraph
  PRIVATE_DEPENDS
    vtkRenderingVolumeAMR
    vtkCommonCore
    vtkIOImage
    vtkIOLegacy
    vtkIOXML
    vtkjsoncpp
    vtksys
  )
