Commit 6944ba05 authored by Brad King's avatar Brad King
Browse files

Avoid VTK_SOURCE_DIR references in Testing/Cxx directories

Replace references to ${VTK_SOURCE_DIR}/Testing/Rendering with
${vtkTestingRendering_SOURCE_DIR}.  The latter is shorter and will also
be useful to build module tests as an external application that does not
have VTK_SOURCE_DIR available.

Change-Id: Ic947470af0dd49f184f902a4c73d3aa665d58164
parent 13e19ed9
......@@ -53,7 +53,7 @@
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -24,7 +24,7 @@ if(VTK_DATA_ROOT)
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -21,7 +21,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -4,7 +4,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -2,7 +2,7 @@ set(MyTests
TestBSPTree.cxx
)
include(${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake)
include(${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -83,7 +83,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -13,7 +13,7 @@ if(NOT APPLE)
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -37,7 +37,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.cmake")
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
vtk_module_test_executable(${vtk-module}CxxTests ${Tests}
ExerciseUnstructuredGridRayCastMapper.cxx )
......
......@@ -83,5 +83,5 @@ SET(CMAKE_TESTDRIVER_AFTER_TESTMAIN
"
)
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
EXTRA_INCLUDE ${VTK_SOURCE_DIR}/Testing/Rendering/vtkTestingObjectFactory.h)
EXTRA_INCLUDE ${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.h)
Supports Markdown
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