Commit c2eeaa2d authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Moving vtkTestingObjectFactory.cmake to ${VTK_SOURCE_DIR}/CMake.

This makes it easier for external applications attempting to use
vtkTestingObjectFactory since they don't require the
vtkTestingRendering_SOURCE_DIR to set anymore (which won't even when the
vtkTestingRendering module has been successfully imported.

Change-Id: I14795bbe0f9d71d41da14c970ba49bdb8e11a913
parent e8dd8921
......@@ -57,7 +57,7 @@
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -27,7 +27,7 @@ if(VTK_DATA_ROOT)
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -24,7 +24,7 @@ if(vtkTestingRendering_SOURCE_DIR)
SET(KIT IOExamples)
SET(MyTests TestDumpXMLFile.cxx TestParticleReader.cxx)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
add_executable(${KIT}CxxTests ${KIT}CxxTests.cxx ${MyTests})
target_link_libraries(${KIT}CxxTests ${VTK_LIBRARIES})
......
......@@ -25,7 +25,7 @@ if(vtkTestingRendering_SOURCE_DIR)
set(KIT ImageProcessingExamples)
set(MyTests TestImageSlicing.cxx)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
add_executable(${KIT}CxxTests ${KIT}CxxTests.cxx ${MyTests})
target_link_libraries(${KIT}CxxTests ${VTK_LIBRARIES})
......
......@@ -44,7 +44,7 @@ if(vtkTestingRendering_SOURCE_DIR)
set(KIT MedicalExamples)
set(MyTests TestMedical1.cxx TestMedical2.cxx TestMedical3.cxx TestMedical4.cxx)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
add_executable(${KIT}CxxTests ${KIT}CxxTests.cxx ${MyTests})
target_link_libraries(${KIT}CxxTests ${VTK_LIBRARIES})
......
......@@ -31,7 +31,7 @@ if(vtkTestingRendering_SOURCE_DIR)
set(KIT ModellingExamples)
set(MyTests TestFinance.cxx TestDelaunay3D.cxx TestDelaunay3DAlpha.cxx)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
add_executable(${KIT}CxxTests ${KIT}CxxTests.cxx ${MyTests})
target_link_LIBRARIES(${KIT}CxxTests ${VTK_LIBRARIES})
......
......@@ -33,7 +33,7 @@ set(MyTests
TestTubesWithVaryingRadiusAndColors.cxx
)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
add_executable(${KIT}CxxTests ${KIT}CxxTests.cxx ${MyTests})
target_link_libraries(${KIT}CxxTests ${VTK_LIBRARIES})
......
......@@ -31,7 +31,7 @@ if(vtkTestingRendering_SOURCE_DIR)
set(KIT WidgetsExamples)
set(MyTests TestSlider.cxx TestSlider2D.cxx TestBalloonWidget.cxx)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
add_executable(${KIT}CxxTests ${KIT}CxxTests.cxx ${MyTests})
target_link_libraries(${KIT}CxxTests ${VTK_LIBRARIES})
......
......@@ -5,7 +5,7 @@ set(MyTests
TestParticleTracers
)
include(${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake)
include(vtkTestingObjectFactory)
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("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -7,7 +7,7 @@ Set(MyTests
TemporalStatistics.cxx
)
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -3,7 +3,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -6,7 +6,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -11,7 +11,7 @@ endif()
# Tests with data
if(VTK_DATA_ROOT)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
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("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -5,7 +5,7 @@ set(MyTests ${MyTests}
# Tests with data
if(VTK_DATA_ROOT)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -87,7 +87,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -42,7 +42,7 @@ if(VTK_BUILD_FREETYPE_BENCHMARK)
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -4,7 +4,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -4,5 +4,5 @@
set(MyTests PNGCompare.cxx)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
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("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
......
......@@ -38,7 +38,7 @@ if(MATPLOTLIB_FOUND)
endif()
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests})
set(TestsToRun ${Tests})
......
......@@ -37,7 +37,7 @@ set(MyTests
)
# Use the testing object factory, to reduce boilerplate code in tests.
include("${vtkTestingRendering_SOURCE_DIR}/vtkTestingObjectFactory.cmake")
include(vtkTestingObjectFactory)
vtk_module_test_executable(${vtk-module}CxxTests ${Tests}
ExerciseUnstructuredGridRayCastMapper.cxx )
......
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