CMakeLists.txt 1.92 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
  TestHyperTreeGridBinary2DIJK.cxx
10
  TestHyperTreeGridBinary2DMaterial.cxx
11
  TestHyperTreeGridBinary2DMaterialIJK.cxx
12
  TestHyperTreeGridBinaryEllipseMaterial.cxx
13
  TestHyperTreeGridBinaryHyperbolicParaboloidMaterial.cxx
14
  TestHyperTreeGridTernary2D.cxx
15
  TestHyperTreeGridTernary2DMaterial.cxx
16
17
  TestHyperTreeGridTernary2DMaterialBits.cxx
  TestHyperTreeGridTernary2DBiMaterial.cxx
18
  TestHyperTreeGridTernary3DAxisCut.cxx
19
  TestHyperTreeGridTernary3DAxisCutMaterial.cxx
20
  TestHyperTreeGridTernary3DContour.cxx
21
  TestHyperTreeGridTernary3DContourMaterial.cxx
22
23
  TestHyperTreeGridTernary3DClip.cxx
  TestHyperTreeGridTernary3DCut.cxx
24
  TestHyperTreeGridTernary3DGeometry.cxx
25
  TestHyperTreeGridTernary3DGeometryMaterial.cxx
26
  TestHyperTreeGridTernary3DGeometryMaterialBits.cxx
27
  TestHyperTreeGridTernary3DGeometryLargeMaterialBits.cxx
28
  TestHyperTreeGridTernary3DUnstructured.cxx
29
  TestHyperTreeGridTernary3DUnstructuredMaterial.cxx
30
  TestHyperTreeGridTernaryHyperbola.cxx
31
  TestHyperTreeGridTernarySphereMaterial.cxx
VTK Developers's avatar
VTK Developers committed
32
33
34
35
36
37
38
39
40
41
42
43
  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)
44
    string(REGEX REPLACE "Bits" "" TNameNoBits ${TName})
VTK Developers's avatar
VTK Developers committed
45
46
47
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName}
        -D ${VTK_DATA_ROOT}
48
        -T ${VTK_TEST_OUTPUT_DIR}
49
        -V Baseline/Graphics/${TNameNoBits}.png)
VTK Developers's avatar
VTK Developers committed
50
51
52
53
54
  else()
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName})
  endif()
endforeach()