cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
project(ParaViewExamples)

find_package(ParaView REQUIRED)
include(${PARAVIEW_USE_FILE})

add_subdirectory(Plugins/Filter)
add_subdirectory(Plugins/ParametricSource)
add_subdirectory(Plugins/SMProxy)
add_subdirectory(Plugins/Representation)
add_subdirectory(Plugins/HiddenLinesRemoval)

if (PARAVIEW_BUILD_QT_GUI)
  add_subdirectory(Plugins/Autostart)
  add_subdirectory(Plugins/DisplayPanelDecorator)
  add_subdirectory(Plugins/DockWidget)
  add_subdirectory(Plugins/GUIObjectPanel)
  add_subdirectory(Plugins/GUIToolBar)
  add_subdirectory(Plugins/GUIView)
  add_subdirectory(Plugins/Reader)
  add_subdirectory(Plugins/ReaderXMLOnly)
  add_subdirectory(Plugins/RenderPassViews)
  add_subdirectory(Plugins/RepresentationBehavior)
  add_subdirectory(Plugins/SourceToolbar)
  add_subdirectory(Plugins/Writer)

  add_subdirectory(CustomApplications/Clone1)
  add_subdirectory(CustomApplications/Clone2)
  add_subdirectory(CustomApplications/Demo0)
  add_subdirectory(CustomApplications/Demo1)
  add_subdirectory(CustomApplications/MultiServerClient)
  add_subdirectory(CustomApplications/Spreadsheet)
endif()

if (TARGET vtkIOVisItBridge)
  # add_subdirectory(Plugins/VisItReader)
elseif (PARAVIEW_BUILD_QT_GUI)
  # ParticlesViewer requires PointSprite plugin which is not built when
  # vtkIOVisItBridge is enabled.
  add_subdirectory(CustomApplications/ParticlesViewer)
endif ()
