| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 | 
							- set(KIT ${PROJECT_NAME})
 
- set(TEST_SOURCES
 
-   ctkActionsWidgetTest1.cpp
 
-   ctkAddRemoveComboBoxTest1.cpp
 
-   ctkAxesWidgetTest1.cpp
 
-   ctkButtonGroupTest1.cpp
 
-   ctkCheckBoxPixmapsTest1.cpp
 
-   ctkCheckBoxTest1.cpp
 
-   ctkCheckableComboBoxTest1.cpp
 
-   ctkCheckableHeaderViewTest1.cpp
 
-   ctkCheckableHeaderViewTest2.cpp
 
-   ctkCheckableModelHelperTest2.cpp
 
-   ctkCheckablePushButtonTest1.cpp
 
-   ctkCollapsibleButtonTest1.cpp
 
-   ctkCollapsibleButtonTest2.cpp
 
-   ctkCollapsibleGroupBoxTest1.cpp
 
-   ctkColorDialogTest1.cpp
 
-   ctkColorDialogTest2.cpp
 
-   ctkColorPickerButtonTest1.cpp
 
-   ctkComboBoxTest1.cpp
 
-   ctkCompleterTest1.cpp
 
-   ctkConsoleTest1.cpp
 
-   ctkCoordinatesWidgetTest1.cpp
 
-   ctkCrosshairLabelTest1.cpp
 
-   ctkDirectoryButtonTest1.cpp
 
-   ctkDoubleRangeSliderTest1.cpp
 
-   ctkDoubleRangeSliderTest2.cpp
 
-   ctkDoubleSliderTest1.cpp
 
-   ctkDoubleSliderTest2.cpp
 
-   ctkDynamicSpacerTest1.cpp
 
-   ctkDynamicSpacerTest2.cpp
 
-   ctkErrorLogWidgetTest1.cpp
 
-   ctkExpandButtonTest1.cpp
 
-   ctkFileDialogTest1.cpp
 
-   ctkFlatProxyModelTest.cpp
 
-   ctkFittedTextBrowserTest1.cpp
 
-   ctkFlowLayoutTest1.cpp
 
-   ctkFontButtonTest.cpp
 
-   ctkLayoutManagerTest1.cpp
 
-   ctkMaterialPropertyPreviewLabelTest1.cpp
 
-   ctkMaterialPropertyWidgetTest1.cpp
 
-   ctkMaterialPropertyWidgetTest2.cpp
 
-   ctkMatrixWidgetTest1.cpp
 
-   ctkMatrixWidgetTest2.cpp
 
-   ctkMenuButtonTest1.cpp
 
-   ctkMenuComboBoxTest1.cpp
 
-   ctkMenuComboBoxTest2.cpp
 
-   ctkMenuComboBoxTest3.cpp
 
-   ctkMessageBoxDontShowAgainTest.cpp
 
-   ctkModalityWidgetTest1.cpp
 
-   ctkPathLineEditTest1.cpp
 
-   ctkPathListWidgetTest.cpp
 
-   ctkPathListWidgetWithButtonsTest.cpp
 
-   ctkPopupWidgetTest1.cpp
 
-   ctkRangeSliderTest.cpp
 
-   ctkRangeSliderTest1.cpp
 
-   ctkRangeWidgetTest1.cpp
 
-   ctkRangeWidgetTest2.cpp
 
-   ctkDateRangeWidgetTest1.cpp
 
-   ctkScreenshotDialogTest1.cpp
 
-   ctkSearchBoxTest1.cpp
 
-   ctkSearchBoxTest2.cpp
 
-   ctkSettingsPanelTest.cpp
 
-   ctkSettingsPanelTest1.cpp
 
-   ctkSettingsTest1.cpp
 
-   ctkSettingsDialogTest1.cpp
 
-   ctkSignalMapperTest1.cpp
 
-   ctkSliderWidgetTest1.cpp
 
-   ctkSliderWidgetTest2.cpp
 
-   ctkThumbnailListWidgetTest1.cpp
 
-   ctkThumbnailLabelTest1.cpp
 
-   ctkToolTipTrapperTest1.cpp
 
-   ctkTreeComboBoxTest1.cpp
 
-   ctkWidgetsUtilsTest1.cpp
 
-   ctkWidgetsUtilsTestGrabWidget.cpp
 
-   ctkWorkflowWidgetTest1.cpp
 
-   ctkWorkflowWidgetTest2.cpp
 
-   ctkExampleUseOfWorkflowWidgetUsingDerivedSteps.cpp
 
-   ctkExampleUseOfWorkflowWidgetUsingSignalsAndSlots.cpp
 
-   )
 
- #
 
- # Tests expecting CTKData to be set
 
- #
 
- if(EXISTS "${CTKData_DIR}")
 
-   list(APPEND TEST_SOURCES
 
-     ctkCrosshairLabelTest2.cpp
 
-     )
 
- endif()
 
- include_directories(${CMAKE_SOURCE_DIR}/Libs/Testing
 
-                     ${CMAKE_CURRENT_BINARY_DIR})
 
- if(CTK_USE_QTTESTING)
 
-   list(APPEND TEST_SOURCES
 
-     ctkActionsWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkAddRemoveComboBoxEventTranslatorPlayerTest1.cpp
 
-     ctkAxesWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkButtonGroupEventTranslatorPlayerTest1.cpp
 
-     ctkCheckableComboBoxEventTranslatorPlayerTest1.cpp
 
-     ctkCheckableHeaderViewEventTranslatorPlayerTest1.cpp
 
-     ctkCheckablePushButtonEventTranslatorPlayerTest1.cpp
 
-     ctkCollapsibleButtonEventTranslatorPlayerTest1.cpp
 
-     ctkCollapsibleGroupBoxEventTranslatorPlayerTest1.cpp
 
-     ctkColorDialogEventTranslatorPlayerTest1.cpp
 
-     ctkColorPickerButtonEventTranslatorPlayerTest1.cpp
 
-     ctkComboBoxEventTranslatorPlayerTest1.cpp
 
-     ctkConsoleEventTranslatorPlayerTest1.cpp
 
-     ctkCoordinatesWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkDateRangeWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkDirectoryButtonEventTranslatorPlayerTest1.cpp
 
-     ctkDoubleRangeSliderEventTranslatorPlayerTest1.cpp
 
-     ctkDoubleSliderEventTranslatorPlayerTest1.cpp
 
-     ctkExpandButtonEventTranslatorPlayerTest1.cpp
 
-     ctkFileDialogEventTranslatorPlayerTest1.cpp
 
-     ctkFontButtonEventTranslatorPlayerTest1.cpp
 
-     ctkMaterialPropertyWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkMatrixWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkMenuButtonEventTranslatorPlayerTest1.cpp
 
-     ctkMenuEventTranslatorPlayerTest1.cpp
 
-     ctkMenuComboBoxEventTranslatorPlayerTest1.cpp
 
-     ctkModalityWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkPathLineEditEventTranslatorPlayerTest1.cpp
 
-     ctkPopupWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkRangeSliderEventTranslatorPlayerTest1.cpp
 
-     ctkRangeWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkScreenshotDialogEventTranslatorPlayerTest1.cpp
 
-     ctkSearchBoxEventTranslatorPlayerTest1.cpp
 
-     ctkSettingsDialogEventTranslatorPlayerTest1.cpp
 
-     ctkSliderWidgetEventTranslatorPlayerTest1.cpp
 
-     ctkTreeComboBoxEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowAbstractPagedWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowButtonBoxWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowGroupBoxEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowStackedWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowTabWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowWidgetEventTranslatorPlayerTest1.cpp
 
- #    ctkWorkflowWidgetStepEventTranslatorPlayerTest1.cpp
 
-     )
 
- endif()
 
- create_test_sourcelist(Tests ${KIT}CppTests.cxx
 
-   ${TEST_SOURCES}
 
-   )
 
- set(TestsToRun ${Tests})
 
- remove(TestsToRun ${KIT}CppTests.cxx)
 
- set(LIBRARY_NAME ${PROJECT_NAME})
 
- set(Tests_SRCS
 
-   ctkExampleDerivedWorkflowWidgetStep.cpp
 
-   ctkExampleDerivedWorkflowWidgetStep.h
 
-   ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.cpp
 
-   ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.h
 
-   ctkSettingsPanelTest2Helper.cpp
 
-   ctkSettingsPanelTest2Helper.h
 
-   )
 
- set(Tests_MOC_SRCS
 
-   ctkExampleDerivedWorkflowWidgetStep.h
 
-   ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.h
 
-   ctkSettingsPanelTest2Helper.h
 
-   )
 
- if(CTK_USE_QTTESTING)
 
-   ctkQtTesting(Tests_SRCS Tests_MOC_SRCS Tests_UI_FORMS Tests_RESOURCES)
 
- endif()
 
- set(Tests_MOC_CPP)
 
- QT4_WRAP_CPP(Tests_MOC_CPP ${Tests_MOC_SRCS})
 
- QT4_GENERATE_MOCS(
 
-   ctkFlatProxyModelTest.cpp
 
-   ctkFontButtonTest.cpp
 
-   ctkMessageBoxDontShowAgainTest.cpp
 
-   ctkPathListWidgetTest.cpp
 
-   ctkPathListWidgetWithButtonsTest.cpp
 
-   ctkRangeSliderTest.cpp
 
-   ctkSettingsPanelTest.cpp
 
-   )
 
- set(Tests_UI_CPP)
 
- if(TEST_UI_FORMS)
 
-   QT4_WRAP_UI(Tests_UI_CPP ${Tests_UI_FORMS})
 
- endif()
 
- set(Tests_RESOURCES_SRCS)
 
- QT4_ADD_RESOURCES(Tests_RESOURCES_SRCS ${Tests_RESOURCES})
 
- add_executable(${KIT}CppTests ${Tests} ${Tests_SRCS} ${Tests_MOC_CPP} ${Tests_UI_CPP} ${Tests_RESOURCES_SRCS})
 
- target_link_libraries(${KIT}CppTests ${LIBRARY_NAME})
 
- #
 
- # Add Tests
 
- #
 
- SIMPLE_TEST( ctkActionsWidgetTest1 )
 
- SIMPLE_TEST( ctkAddRemoveComboBoxTest1 )
 
- SIMPLE_TEST( ctkAxesWidgetTest1 )
 
- SIMPLE_TEST( ctkButtonGroupTest1 )
 
- SIMPLE_TEST( ctkCheckBoxPixmapsTest1 )
 
- SIMPLE_TEST( ctkCheckBoxTest1 )
 
- SIMPLE_TEST( ctkCheckableComboBoxTest1 )
 
- SIMPLE_TEST( ctkCheckableHeaderViewTest1 )
 
- SIMPLE_TEST( ctkCheckableHeaderViewTest2 )
 
- SIMPLE_TEST( ctkCheckableModelHelperTest2 )
 
- SIMPLE_TEST( ctkCheckablePushButtonTest1 )
 
- SIMPLE_TEST( ctkCollapsibleButtonTest1 )
 
- SIMPLE_TEST( ctkCollapsibleButtonTest2 )
 
- SIMPLE_TEST( ctkCollapsibleGroupBoxTest1 )
 
- SIMPLE_TEST( ctkColorDialogTest1 )
 
- SIMPLE_TEST( ctkColorDialogTest2 )
 
- SIMPLE_TEST( ctkColorPickerButtonTest1 )
 
- SIMPLE_TEST( ctkComboBoxTest1 )
 
- SIMPLE_TEST( ctkCompleterTest1 )
 
- SIMPLE_TEST( ctkConsoleTest1 )
 
- SIMPLE_TEST( ctkCoordinatesWidgetTest1 )
 
- SIMPLE_TEST( ctkCrosshairLabelTest1 )
 
- SIMPLE_TEST( ctkDateRangeWidgetTest1 )
 
- SIMPLE_TEST( ctkDirectoryButtonTest1 )
 
- SIMPLE_TEST( ctkDoubleRangeSliderTest1 )
 
- SIMPLE_TEST( ctkDoubleRangeSliderTest2 )
 
- SIMPLE_TEST( ctkDoubleSliderTest1 )
 
- SIMPLE_TEST( ctkDoubleSliderTest2 )
 
- SIMPLE_TEST( ctkDynamicSpacerTest1 )
 
- SIMPLE_TEST( ctkDynamicSpacerTest2 )
 
- SIMPLE_TEST( ctkErrorLogWidgetTest1 )
 
- SIMPLE_TEST( ctkExampleUseOfWorkflowWidgetUsingDerivedSteps )
 
- SIMPLE_TEST( ctkExampleUseOfWorkflowWidgetUsingSignalsAndSlots )
 
- SIMPLE_TEST( ctkExpandButtonTestQSpinBox issue if used1 )
 
- SIMPLE_TEST( ctkFlatProxyModelTest )
 
- SIMPLE_TEST( ctkFileDialogTest1 )
 
- SIMPLE_TEST( ctkFittedTextBrowserTest1 )
 
- SIMPLE_TEST( ctkFlowLayoutTest1 )
 
- SIMPLE_TEST( ctkFontButtonTest )
 
- SIMPLE_TEST( ctkLayoutManagerTest1 )
 
- SIMPLE_TEST( ctkMaterialPropertyPreviewLabelTest1 )
 
- SIMPLE_TEST( ctkMaterialPropertyWidgetTest1 )
 
- SIMPLE_TEST( ctkMaterialPropertyWidgetTest2 )
 
- SIMPLE_TEST( ctkMatrixWidgetTest1 )
 
- SIMPLE_TEST( ctkMatrixWidgetTest2 )
 
- SIMPLE_TEST( ctkMenuButtonTest1 )
 
- SIMPLE_TEST( ctkMenuComboBoxTest1 )
 
- SIMPLE_TEST( ctkMenuComboBoxTest2 )
 
- SIMPLE_TEST( ctkMenuComboBoxTest3 )
 
- SIMPLE_TEST( ctkMessageBoxDontShowAgainTest )
 
- SIMPLE_TEST( ctkModalityWidgetTest1 )
 
- SIMPLE_TEST( ctkPathLineEditTest1 )
 
- SIMPLE_TEST( ctkPathListWidgetTest )
 
- SIMPLE_TEST( ctkPathListWidgetWithButtonsTest )
 
- SIMPLE_TEST( ctkPopupWidgetTest1 )
 
- SIMPLE_TEST( ctkRangeSliderTest )
 
- SIMPLE_TEST( ctkRangeSliderTest1 )
 
- SIMPLE_TEST( ctkRangeWidgetTest1 )
 
- SIMPLE_TEST( ctkRangeWidgetTest2 )
 
- SIMPLE_TEST( ctkScreenshotDialogTest1 )
 
- SIMPLE_TEST( ctkSearchBoxTest1 )
 
- SIMPLE_TEST( ctkSearchBoxTest2 )
 
- SIMPLE_TEST( ctkSettingsDialogTest1 )
 
- SIMPLE_TEST( ctkSettingsPanelTest )
 
- SIMPLE_TEST( ctkSettingsPanelTest1 )
 
- SIMPLE_TEST( ctkSettingsTest1 )
 
- SIMPLE_TEST( ctkSignalMapperTest1 )
 
- SIMPLE_TEST( ctkSliderWidgetTest1 )
 
- SIMPLE_TEST( ctkSliderWidgetTest2 )
 
- SIMPLE_TEST( ctkThumbnailListWidgetTest1 )
 
- SIMPLE_TEST( ctkThumbnailLabelTest1 )
 
- SIMPLE_TEST( ctkToolTipTrapperTest1 )
 
- SIMPLE_TEST( ctkTreeComboBoxTest1 )
 
- SIMPLE_TEST( ctkWidgetsUtilsTest1 )
 
- SIMPLE_TEST( ctkWidgetsUtilsTestGrabWidget )
 
- SIMPLE_TEST( ctkWorkflowWidgetTest1 )
 
- SIMPLE_TEST( ctkWorkflowWidgetTest2 )
 
- #
 
- # Add Tests expecting CTKData to be set
 
- #
 
- if(EXISTS "${CTKData_DIR}")
 
-   set(baseline_relative_location "Libs/Widgets") 
 
-   SIMPLE_TEST_WITH_DATA( ctkCrosshairLabelTest2 ${baseline_relative_location})
 
- endif()
 
- # Add Tests expecting CTK_USE_QTTESTING to be set
 
- #
 
- if(CTK_USE_QTTESTING)
 
-   SIMPLE_TEST( ctkActionsWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkAddRemoveComboBoxEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkAxesWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkButtonGroupEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkCheckableComboBoxEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkCheckableHeaderViewEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkCheckablePushButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkCollapsibleButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkCollapsibleGroupBoxEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkColorDialogEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkColorPickerButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkComboBoxEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkConsoleEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkCoordinatesWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkDateRangeWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkDirectoryButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkDoubleRangeSliderEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkDoubleSliderEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkExpandButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkFileDialogEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkFontButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkMaterialPropertyWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkMatrixWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkMenuButtonEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkMenuComboBoxEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkMenuEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkModalityWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkPathLineEditEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkPopupWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkRangeSliderEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkRangeWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkScreenshotDialogEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkSearchBoxEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkSettingsDialogEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkSliderWidgetEventTranslatorPlayerTest1 )
 
-   SIMPLE_TEST( ctkTreeComboBoxEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowAbstractPagedWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowButtonBoxWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowGroupBoxEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowStackedWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowTabWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowWidgetEventTranslatorPlayerTest1 )
 
- #  SIMPLE_TEST( ctkWorkflowWidgetStepEventTranslatorPlayerTest1 )
 
-   set_tests_properties(
 
-     ctkMenuComboBoxEventTranslatorPlayerTest1
 
-     ctkPathLineEditEventTranslatorPlayerTest1
 
-     PROPERTIES RUN_SERIAL TRUE
 
-     )
 
- endif()
 
 
  |