Cloned library of VTK-5.0.0 with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.4 KiB

# if we have rendering add the following tests
IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)
SET(KIT Graphics)
# add tests that do not require data
SET(MyTests
Mace.cxx
expCos.cxx
BoxClipTriangulate.cxx
CellLocator.cxx
PointLocator.cxx
FrustumClip.cxx
RGrid.cxx
TestSortDataArray.cxx
)
IF (VTK_DATA_ROOT)
# add tests that require data
SET(MyTests ${MyTests}
BoxClipPolyData.cxx
BoxClipTetrahedra.cxx
MeshQuality.cxx
TestHierarchicalBoxPipeline.cxx
TestMultiBlock.cxx
)
ENDIF (VTK_DATA_ROOT)
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
EXTRA_INCLUDE vtkTestDriver.h)
ADD_EXECUTABLE(${KIT}CxxTests ${Tests}
vtkTestHierarchicalDataReader.cxx)
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkRendering vtkIO)
SET (TestsToRun ${Tests})
REMOVE (TestsToRun ${KIT}CxxTests.cxx)
#
# Add all the executables
FOREACH (test ${TestsToRun})
GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
IF (VTK_DATA_ROOT)
ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName}
-D ${VTK_DATA_ROOT}
-T ${VTK_BINARY_DIR}/Testing/Temporary
-V Baseline/${KIT}/${TName}.png)
ELSE (VTK_DATA_ROOT)
ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
ENDIF (VTK_DATA_ROOT)
ENDFOREACH (test)
ENDIF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)