Commit 57569cc9 authored by Brad King's avatar Brad King

Use vtk_test_cxx_executable in Rendering/GL2PS/Testing/Cxx

Replace the last use of vtkTestingObjectFactory.cmake and remove it.
CMake modules that have immediate inline effects are hard to follow, so
drop this one.

Change-Id: I813644b0c31c1eecd3415f11e57e703d035940fd
parent 94072480
include(vtkTestingRenderingDriver)
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
EXTRA_INCLUDE ${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.h)
# Compile the PNGCompare test, which is used to validate PNG images (read from
# disk, not generated in VTK). The CMake/RasterizePostScript script can be used
# to create a png image from GL2PS output.
set(MyTests PNGCompare.cxx)
# Use the testing object factory, to reduce boilerplate code in tests.
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set_property(DIRECTORY APPEND PROPERTY VTK_TEST_CXX_SOURCES PNGCompare.cxx)
vtk_test_cxx_executable(${vtk-module}CxxTests RENDERING_FACTORY)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment