CMakeLists.txt 1.59 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
Philippe Pébay's avatar
Philippe Pébay committed
8
  TestHyperTreeGridBinary2D.cxx
9
  TestHyperTreeGridBinary2DMaterial.cxx
10
  TestHyperTreeGridTernary2DBiMaterial.cxx
11
  TestHyperTreeGridBinaryEllipseMaterial.cxx
12
  TestHyperTreeGridBinaryHyperbolicParaboloidMaterial.cxx
Philippe Pébay's avatar
Philippe Pébay committed
13
  TestHyperTreeGridTernary3D.cxx
14
  TestHyperTreeGridTernary3DAxisCut.cxx
15
  TestHyperTreeGridTernary3DAxisCutMaterial.cxx
16
  TestHyperTreeGridTernary3DContour.cxx
17
  TestHyperTreeGridTernary3DContourMaterial.cxx
18
19
  TestHyperTreeGridTernary3DClip.cxx
  TestHyperTreeGridTernary3DCut.cxx
20
  TestHyperTreeGridTernary3DGeometry.cxx
21
  TestHyperTreeGridTernary3DGeometryMaterial.cxx
22
  TestHyperTreeGridTernary3DUnstructured.cxx
23
  TestHyperTreeGridTernary3DUnstructuredMaterial.cxx
24
  TestHyperTreeGridTernaryHyperbola.cxx
25
  TestHyperTreeGridTernarySphereMaterial.cxx
VTK Developers's avatar
VTK Developers committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41

  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}
42
        -T ${VTK_TEST_OUTPUT_DIR}
VTK Developers's avatar
VTK Developers committed
43
44
45
46
47
48
        -V Baseline/Graphics/${TName}.png)
  else()
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName})
  endif()
endforeach()