CMakeLists.txt 1.25 KB
Newer Older
VTK Developers's avatar
VTK Developers committed
1
2
3
4
5
6
7
create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
  TestClipHyperOctree.cxx
  TestHyperOctreeContourFilter.cxx
  TestHyperOctreeCutter.cxx
  TestHyperOctreeDual.cxx
  TestHyperOctreeSurfaceFilter.cxx
  TestHyperOctreeToUniformGrid.cxx
8
  TestHyperTreeGridTernary3DAxisCut.cxx
9
  TestHyperTreeGridTernary3DContour.cxx
10
  TestHyperTreeGridTernary3DGeometry.cxx
11
  TestHyperTreeGridTernary3DSphere.cxx
12
  TestHyperTreeGridTernary3DUnstructured.cxx
13
  TestHyperTreeGridTernary3DMaterialAxisCut.cxx
14
  TestHyperTreeGridTernary3DMaterialGeometry.cxx
15
  TestHyperTreeGridTernary3DMaterialUnstructured.cxx
16
  TestHyperTreeGridTernaryHyperbola.cxx
17
  TestHyperTreeGridBinary2D.cxx
VTK Developers's avatar
VTK Developers committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

  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}
34
        -T ${VTK_TEST_OUTPUT_DIR}
VTK Developers's avatar
VTK Developers committed
35
36
37
38
39
40
        -V Baseline/Graphics/${TName}.png)
  else()
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName})
  endif()
endforeach()