CMakeLists.txt 744 Bytes
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
create_test_sourcelist(Tests ${vtk-module}CxxTests.cxx
  TestConvertSelection.cxx
  TestExtractSelection.cxx
  TestExtraction.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}
20
        -T ${VTK_TEST_OUTPUT_DIR}
VTK Developers's avatar
VTK Developers committed
21
22
23
24
25
26
        -V Baseline/Graphics/${TName}.png)
  else()
    add_test(NAME ${vtk-module}Cxx-${TName}
      COMMAND ${vtk-module}CxxTests ${TName})
  endif()
endforeach()