CMakeLists.txt 1.31 KB
Newer Older
VTK Developers's avatar
VTK Developers committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(MyTests
  TestGraphWeightEuclideanDistanceFilter.cxx
  BoxClipPolyData.cxx
  BoxClipTetrahedra.cxx
  BoxClipTriangulate.cxx
  BoxClipTriangulateAndInterpolate.cxx
  TestBooleanOperationPolyDataFilter.cxx
  TestBooleanOperationPolyDataFilter2.cxx
  TestDensifyPolyData.cxx
  TestDistancePolyDataFilter.cxx
  TestGradientAndVorticity.cxx
  TestIconGlyphFilterGravity.cxx
  TestImageDataToPointSet.cxx
  TestIntersectionPolyDataFilter.cxx
  TestQuadraturePoints.cxx
  TestRectilinearGridToPointSet.cxx
  TestReflectionFilter.cxx
  TestUncertaintyTubeFilter.cxx
  TestYoungsMaterialInterface.cxx
)

# Use the testing object factory, to reduce boilerplate code in tests.
23
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
VTK Developers's avatar
VTK Developers committed
24
25
26
27
28
29
30
31
32

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

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

# Add all the executables
foreach (test ${TestsToRun})
  get_filename_component(TName ${test} NAME_WE)
33

VTK Developers's avatar
VTK Developers committed
34
35
36
37
  if(VTK_DATA_ROOT)
  add_test(NAME ${vtk-module}Cxx-${TName}
    COMMAND ${vtk-module}CxxTests ${TName}
        -D ${VTK_DATA_ROOT}
38
        -T ${VTK_TEST_OUTPUT_DIR}
VTK Developers's avatar
VTK Developers committed
39
40
41
42
        -V Baseline/Graphics/${TName}.png)
  else()
  add_test(NAME ${vtk-module}Cxx-${TName}
    COMMAND ${vtk-module}CxxTests ${TName}
43
      -T ${VTK_TEST_OUTPUT_DIR}
VTK Developers's avatar
VTK Developers committed
44
45
46
      )
  endif()
endforeach()