CMakeLists.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. SET(KIT ${PROJECT_NAME})
  2. CREATE_TEST_SOURCELIST(Tests ${KIT}CppTests.cxx
  3. ctkActionsWidgetTest1.cpp
  4. ctkAddRemoveComboBoxTest1.cpp
  5. ctkAxesWidgetTest1.cpp
  6. ctkButtonGroupTest1.cpp
  7. ctkCheckBoxPixmapsTest1.cpp
  8. ctkCheckableHeaderViewTest1.cpp
  9. ctkCheckableHeaderViewTest2.cpp
  10. ctkCheckablePushButtonTest1.cpp
  11. ctkCollapsibleButtonTest1.cpp
  12. ctkCollapsibleGroupBoxTest1.cpp
  13. ctkColorDialogTest1.cpp
  14. ctkColorDialogTest2.cpp
  15. ctkColorPickerButtonTest1.cpp
  16. ctkComboBoxTest1.cpp
  17. ctkConfirmExitDialogTest1.cpp
  18. ctkConsoleTest1.cpp
  19. ctkCoordinatesWidgetTest1.cpp
  20. ctkDirectoryButtonTest1.cpp
  21. ctkDoubleRangeSliderTest1.cpp
  22. ctkDoubleRangeSliderTest2.cpp
  23. ctkDoubleSliderTest1.cpp
  24. ctkDynamicSpacerTest1.cpp
  25. ctkDynamicSpacerTest2.cpp
  26. ctkFileDialogTest1.cpp
  27. ctkFittedTextBrowserTest1.cpp
  28. ctkFlowLayoutTest1.cpp
  29. ctkFontButtonTest1.cpp
  30. ctkLayoutManagerTest1.cpp
  31. ctkMaterialPropertyPreviewLabelTest1.cpp
  32. ctkMaterialPropertyWidgetTest1.cpp
  33. ctkMatrixWidgetTest1.cpp
  34. ctkMatrixWidgetTest2.cpp
  35. ctkMenuButtonTest1.cpp
  36. ctkModalityWidgetTest1.cpp
  37. ctkPathLineEditTest1.cpp
  38. ctkRangeSliderTest1.cpp
  39. ctkRangeWidgetTest1.cpp
  40. ctkRangeWidgetTest2.cpp
  41. ctkDateRangeWidgetTest1.cpp
  42. ctkScreenshotDialogTest1.cpp
  43. ctkSettingsPanelTest1.cpp
  44. ctkSettingsTest1.cpp
  45. ctkSettingsDialogTest1.cpp
  46. ctkSliderWidgetTest1.cpp
  47. ctkToolTipTrapperTest1.cpp
  48. ctkTreeComboBoxTest1.cpp
  49. ctkWorkflowWidgetTest1.cpp
  50. ctkWorkflowWidgetTest2.cpp
  51. ctkExampleUseOfWorkflowWidgetUsingDerivedSteps.cpp
  52. ctkExampleUseOfWorkflowWidgetUsingSignalsAndSlots.cpp
  53. )
  54. SET (TestsToRun ${Tests})
  55. REMOVE (TestsToRun ${KIT}CppTests.cxx)
  56. SET(LIBRARY_NAME ${PROJECT_NAME})
  57. SET(Tests_SRCS
  58. ctkExampleDerivedWorkflowWidgetStep.cpp
  59. ctkExampleDerivedWorkflowWidgetStep.h
  60. ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.cpp
  61. ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.h
  62. )
  63. SET(Tests_MOC_SRCS
  64. ctkExampleDerivedWorkflowWidgetStep.h
  65. ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.h
  66. )
  67. SET(Tests_MOC_CPP)
  68. QT4_WRAP_CPP(Tests_MOC_CPP ${Tests_MOC_SRCS})
  69. ADD_EXECUTABLE(${KIT}CppTests ${Tests} ${Tests_SRCS} ${Tests_MOC_CPP})
  70. TARGET_LINK_LIBRARIES(${KIT}CppTests ${LIBRARY_NAME})
  71. SET( KIT_TESTS ${CPP_TEST_PATH}/${KIT}CppTests)
  72. MACRO( SIMPLE_TEST TESTNAME )
  73. ADD_TEST( ${TESTNAME} ${KIT_TESTS} ${TESTNAME} )
  74. SET_PROPERTY(TEST ${TESTNAME} PROPERTY LABELS ${PROJECT_NAME})
  75. ENDMACRO( SIMPLE_TEST )
  76. #
  77. # Add Tests
  78. #
  79. SIMPLE_TEST( ctkActionsWidgetTest1 )
  80. SIMPLE_TEST( ctkAddRemoveComboBoxTest1 )
  81. SIMPLE_TEST( ctkAxesWidgetTest1 )
  82. SIMPLE_TEST( ctkButtonGroupTest1 )
  83. SIMPLE_TEST( ctkCheckBoxPixmapsTest1 )
  84. SIMPLE_TEST( ctkCheckableHeaderViewTest1 )
  85. SIMPLE_TEST( ctkCheckableHeaderViewTest2 )
  86. SIMPLE_TEST( ctkCheckablePushButtonTest1 )
  87. SIMPLE_TEST( ctkCollapsibleButtonTest1 )
  88. SIMPLE_TEST( ctkCollapsibleGroupBoxTest1 )
  89. SIMPLE_TEST( ctkColorDialogTest1 )
  90. SIMPLE_TEST( ctkColorDialogTest2 )
  91. SIMPLE_TEST( ctkColorPickerButtonTest1 )
  92. SIMPLE_TEST( ctkComboBoxTest1 )
  93. SIMPLE_TEST( ctkConfirmExitDialogTest1 )
  94. SIMPLE_TEST( ctkConsoleTest1 )
  95. SIMPLE_TEST( ctkCoordinatesWidgetTest1 )
  96. SIMPLE_TEST( ctkDateRangeWidgetTest1 )
  97. SIMPLE_TEST( ctkDirectoryButtonTest1 )
  98. SIMPLE_TEST( ctkDoubleRangeSliderTest1 )
  99. SIMPLE_TEST( ctkDoubleRangeSliderTest2 )
  100. SIMPLE_TEST( ctkDoubleSliderTest1 )
  101. SIMPLE_TEST( ctkDynamicSpacerTest1 )
  102. SIMPLE_TEST( ctkDynamicSpacerTest2 )
  103. SIMPLE_TEST( ctkExampleUseOfWorkflowWidgetUsingDerivedSteps )
  104. SIMPLE_TEST( ctkExampleUseOfWorkflowWidgetUsingSignalsAndSlots )
  105. SIMPLE_TEST( ctkFileDialogTest1 )
  106. SIMPLE_TEST( ctkFittedTextBrowserTest1 )
  107. SIMPLE_TEST( ctkFlowLayoutTest1 )
  108. SIMPLE_TEST( ctkFontButtonTest1 )
  109. SIMPLE_TEST( ctkLayoutManagerTest1 )
  110. SIMPLE_TEST( ctkMaterialPropertyPreviewLabelTest1 )
  111. SIMPLE_TEST( ctkMaterialPropertyWidgetTest1 )
  112. SIMPLE_TEST( ctkMatrixWidgetTest1 )
  113. SIMPLE_TEST( ctkMatrixWidgetTest2 )
  114. SIMPLE_TEST( ctkMenuButtonTest1 )
  115. SIMPLE_TEST( ctkModalityWidgetTest1 )
  116. SIMPLE_TEST( ctkPathLineEditTest1 )
  117. SIMPLE_TEST( ctkRangeSliderTest1 )
  118. SIMPLE_TEST( ctkRangeWidgetTest1 )
  119. SIMPLE_TEST( ctkRangeWidgetTest2 )
  120. SIMPLE_TEST( ctkScreenshotDialogTest1 )
  121. SIMPLE_TEST( ctkSettingsDialogTest1 )
  122. SIMPLE_TEST( ctkSettingsPanelTest1 )
  123. SIMPLE_TEST( ctkSettingsTest1 )
  124. SIMPLE_TEST( ctkSliderWidgetTest1 )
  125. SIMPLE_TEST( ctkToolTipTrapperTest1 )
  126. SIMPLE_TEST( ctkTreeComboBoxTest1 )
  127. SIMPLE_TEST( ctkWorkflowWidgetTest1 )
  128. SIMPLE_TEST( ctkWorkflowWidgetTest2 )