[Cmake] generating a vtk test image

Dean Inglis dean.inglis at camris.ca
Wed May 26 11:34:32 EDT 2004


I have a test to add to VTK/Hybrid/Testing and
I need to generate the test image.  It used to 
be that all one had to do was
ctest -R MyTest and a .png would be automatically
created in the correct VTKDAta/Baseline directory.
Have things changed since this was the case?


VTK/Hybrid/Tests/Cxx/CMakeLists.txt will be:

<snip>

SET(KIT Hybrid)
# add tests that do not require data
SET(MyTests     
  BoxWidget.cxx
  TestImplicitPlaneWidget.cxx
  TestOrientationMarkerWidget.cxx  <------new test
  )
IF (VTK_DATA_ROOT)
  # add tests that require data
  SET(MyTests ${MyTests}
    ImagePlaneWidget.cxx
    PushTest.cxx
    TestSplineWidget.cxx
    TestScalarBarWidget.cxx
    TestLineWidget.cxx
    TestPlaneWidget.cxx
    TestPointWidget.cxx
    TestImageTracerWidget.cxx
    )
ENDIF (VTK_DATA_ROOT)

# remove some tests if there is no display
IF(NOT VTK_USE_DISPLAY)
  REMOVE(MyTests     
    BoxWidget.cxx
    TestImplicitPlaneWidget.cxx
    TestOrientationMarkerWidget.cxx  <------new test
    )
ENDIF(NOT VTK_USE_DISPLAY)

<snip>

Dean



More information about the Cmake mailing list