create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
  TestBinaryHyperTreeGrid.cxx
  TestClipHyperOctree.cxx
  TestHyperOctreeContourFilter.cxx
  TestHyperOctreeCutter.cxx
  TestHyperOctreeDual.cxx
  TestHyperOctreeSurfaceFilter.cxx
  TestHyperOctreeToUniformGrid.cxx

  EXTRA_INCLUDE vtkTestDriver.h
)

vtk_module_test_executable(${vtk-module}CxxTests ${Tests})

set(TestsToRun ${Tests})
list(REMOVE_ITEM TestsToRun ${vtk-module}CxxTests.cxx)

# Add all the executables
foreach(test ${TestsToRun})
  get_filename_component(TName ${test} NAME_WE)
  if(VTK_DATA_ROOT)
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName}
        -D ${VTK_DATA_ROOT}
        -T ${VTK_TEST_OUTPUT_DIR}
        -V Baseline/Graphics/${TName}.png)
  else()
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName})
  endif()
endforeach()

create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
  TestBinaryHyperTreeGrid.cxx
  TestClipHyperOctree.cxx
  TestHyperOctreeContourFilter.cxx
  TestHyperOctreeCutter.cxx
  TestHyperOctreeDual.cxx
  TestHyperOctreeSurfaceFilter.cxx
  TestHyperOctreeToUniformGrid.cxx
  TestHyperTreeGrid.cxx
  TestHyperTreeGridAxisCut.cxx
  TestHyperTreeGridGeometry.cxx
 

  EXTRA_INCLUDE vtkTestDriver.h
)

vtk_module_test_executable(${vtk-module}CxxTests ${Tests})

set(TestsToRun ${Tests})
list(REMOVE_ITEM TestsToRun ${vtk-module}CxxTests.cxx)

# Add all the executables
foreach(test ${TestsToRun})
  get_filename_component(TName ${test} NAME_WE)
  if(VTK_DATA_ROOT)
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName}
        -D ${VTK_DATA_ROOT}
        -T ${VTK_TEST_OUTPUT_DIR}
        -V Baseline/Graphics/${TName}.png)
  else()
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName})
  endif()
endforeach()

Include all hyper tree grid tests into test harness
Include all hyper tree grid tests into test harness

Change-Id: I3a4f7708734d3d6a97d20ec76dc98c80084d4981
