include(ParaViewTestingMacros)

# We need to locate smooth.flash since it's not included in the default testing
# datasets.

find_file(smooth_flash
          NAMES smooth.flash
          DOC "Path to smooth.flash data file."
          NO_DEFAULT_PATH)
mark_as_advanced(smooth_flash)

# This was basically ignored in the previous version.
#paraview_add_test_cxx(${vtk-module}CxxTests tests
#  TestResampledAMRImageSourceWithPointData.cxx
#  )

if (EXISTS "${smooth_flash}")
  get_filename_component(smooth_flash_dir "${smooth_flash}" PATH)
  set(${vtk-module}_DATA_DIR "${smooth_flash_dir}")
  # This was basically ignored in the previous version.
  #paraview_add_test_cxx(${vtk-module}CxxTests smooth_flash_tests
  #  TestResampledAMRImageSource.cxx
  #  )
  list(APPEND tests
    ${smooth_flash_tests})
endif()

# This was basically ignored in the previous version.
#vtk_test_cxx_executable(${vtk-module}CxxTests tests)
