include_directories(
  ${VTK_INCLUDE_DIRS}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  )

add_paraview_plugin(
  SurfaceLIC "2.0"
  DOCUMENTATION_DIR "${CMAKE_CURRENT_SOURCE_DIR}/doc"
  SERVER_MANAGER_XML vtkSurfaceLICRepresentation.xml
  SERVER_MANAGER_SOURCES vtkSurfaceLICRepresentation.cxx
  )

set(SurfaceLIC_DEPENDENCIES vtkRenderingLIC)
if (PARAVIEW_USE_MPI)
  list(APPEND SurfaceLIC_DEPENDENCIES vtkRenderingParallelLIC)
endif()
target_link_libraries(SurfaceLIC LINK_PRIVATE ${SurfaceLIC_DEPENDENCIES})

if (VTK_RENDERINGPARALLELLIC_SURFACELICPAINTER_TIMER)
  add_definitions("-DvtkSurfaceLICPainterTIME")
endif()
if (VTK_RENDERINGPARALLELLIC_LINEINTEGRALCONVLOLUTION2D_TIMER)
  add_definitions("-DvtkLineIntegralConvolution2DTIME")
endif()

# because these tests can be a little flakey provide the
# option to disable them on problematic systems.
SET(SURFACELIC_PLUGIN_TESTING
  ON CACHE BOOL
  "Explicitly disable SurfaceLIC plugin ctests"
  )

if (BUILD_TESTING AND SURFACELIC_PLUGIN_TESTING AND PARAVIEW_ENABLE_PYTHON)
  add_subdirectory(Testing/Python)
endif()
