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.
56 lines
1.5 KiB
56 lines
1.5 KiB
SET(KIT Widgets)
|
|
# add tests that do not require data
|
|
SET(MyTests
|
|
BoxWidget.cxx
|
|
TestImplicitPlaneWidget.cxx
|
|
TestOrientationMarkerWidget.cxx
|
|
)
|
|
IF (VTK_DATA_ROOT)
|
|
# add tests that require data
|
|
SET(MyTests ${MyTests}
|
|
ImagePlaneWidget.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
|
|
ImagePlaneWidget.cxx
|
|
TestSplineWidget.cxx
|
|
TestScalarBarWidget.cxx
|
|
TestLineWidget.cxx
|
|
TestPlaneWidget.cxx
|
|
TestPointWidget.cxx
|
|
TestImageTracerWidget.cxx
|
|
)
|
|
ENDIF(NOT VTK_USE_DISPLAY)
|
|
|
|
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
|
|
EXTRA_INCLUDE vtkTestDriver.h)
|
|
|
|
ADD_EXECUTABLE(${KIT}CxxTests ${Tests})
|
|
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkWidgets)
|
|
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}
|
|
-V Baseline/${KIT}/${TName}.png)
|
|
ELSE (VTK_DATA_ROOT)
|
|
ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
|
|
ENDIF (VTK_DATA_ROOT)
|
|
ENDFOREACH (test)
|
|
|