CMakeLists.txt 3.7 KB

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