CMakeLists.txt 4.0 KB

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