|
@@ -10,14 +10,19 @@ SET(TEST_SOURCES
|
|
|
ctkTransferFunctionViewTest3.cpp
|
|
|
ctkTransferFunctionViewTest4.cpp
|
|
|
ctkTransferFunctionViewTest5.cpp
|
|
|
- ctkVTKChartViewTest1.cpp
|
|
|
- ctkVTKScalarsToColorsViewTest1.cpp
|
|
|
- ctkVTKScalarsToColorsViewTest2.cpp
|
|
|
- ctkVTKScalarsToColorsViewTest3.cpp
|
|
|
- ctkVTKScalarsToColorsViewTest4.cpp
|
|
|
- ctkVTKScalarsToColorsWidgetTest1.cpp
|
|
|
)
|
|
|
|
|
|
+IF(CTK_USE_CHARTS)
|
|
|
+ SET(TEST_SOURCES
|
|
|
+ ctkVTKChartViewTest1.cpp
|
|
|
+ ctkVTKScalarsToColorsViewTest1.cpp
|
|
|
+ ctkVTKScalarsToColorsViewTest2.cpp
|
|
|
+ ctkVTKScalarsToColorsViewTest3.cpp
|
|
|
+ ctkVTKScalarsToColorsViewTest4.cpp
|
|
|
+ ctkVTKScalarsToColorsWidgetTest1.cpp
|
|
|
+ ${TEST_SOURCES})
|
|
|
+ENDIF(CTK_USE_CHARTS)
|
|
|
+
|
|
|
#
|
|
|
# Tests expecting CTKData to be set
|
|
|
#
|
|
@@ -39,7 +44,7 @@ REMOVE (TestsToRun ${KIT}CppTests.cpp)
|
|
|
SET(LIBRARY_NAME ${PROJECT_NAME})
|
|
|
|
|
|
ADD_EXECUTABLE(${KIT}CppTests ${Tests})
|
|
|
-TARGET_LINK_LIBRARIES(${KIT}CppTests ${LIBRARY_NAME} ${CTK_BASE_LIBRARIES})
|
|
|
+TARGET_LINK_LIBRARIES(${KIT}CppTests ${LIBRARY_NAME} vtkCharts ${CTK_BASE_LIBRARIES})
|
|
|
|
|
|
SET( KIT_TESTS ${CPP_TEST_PATH}/${KIT}CppTests)
|
|
|
|
|
@@ -58,12 +63,14 @@ SIMPLE_TEST( ctkTransferFunctionViewTest2 )
|
|
|
SIMPLE_TEST( ctkTransferFunctionViewTest3 )
|
|
|
SIMPLE_TEST( ctkTransferFunctionViewTest4 )
|
|
|
SIMPLE_TEST( ctkTransferFunctionViewTest5 )
|
|
|
-SIMPLE_TEST( ctkVTKChartViewTest1 )
|
|
|
-SIMPLE_TEST( ctkVTKScalarsToColorsViewTest1 )
|
|
|
-SIMPLE_TEST( ctkVTKScalarsToColorsViewTest2 )
|
|
|
-SIMPLE_TEST( ctkVTKScalarsToColorsViewTest3 )
|
|
|
-SIMPLE_TEST( ctkVTKScalarsToColorsViewTest4 )
|
|
|
-SIMPLE_TEST( ctkVTKScalarsToColorsWidgetTest1 )
|
|
|
+IF (CTK_USE_CHARTS)
|
|
|
+ SIMPLE_TEST( ctkVTKChartViewTest1 )
|
|
|
+ SIMPLE_TEST( ctkVTKScalarsToColorsViewTest1 )
|
|
|
+ SIMPLE_TEST( ctkVTKScalarsToColorsViewTest2 )
|
|
|
+ SIMPLE_TEST( ctkVTKScalarsToColorsViewTest3 )
|
|
|
+ SIMPLE_TEST( ctkVTKScalarsToColorsViewTest4 )
|
|
|
+ SIMPLE_TEST( ctkVTKScalarsToColorsWidgetTest1 )
|
|
|
+ENDIF(CTK_USE_CHARTS)
|
|
|
|
|
|
#
|
|
|
# Add Tests expecting CTKData to be set
|