CMakeLists.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. ctkCollapsibleButtonTest1.cpp
  10. ctkCollapsibleGroupBoxTest1.cpp
  11. ctkColorPickerButtonTest1.cpp
  12. ctkComboBoxTest1.cpp
  13. ctkConsoleWidgetTest1.cpp
  14. ctkCoordinatesWidgetTest1.cpp
  15. ctkDirectoryButtonTest1.cpp
  16. ctkDoubleRangeSliderTest1.cpp
  17. ctkDoubleSliderTest1.cpp
  18. ctkFileDialogTest1.cpp
  19. ctkFittedTextBrowserTest1.cpp
  20. ctkMatrixWidgetTest1.cpp
  21. ctkMatrixWidgetTest2.cpp
  22. ctkMenuButtonTest1.cpp
  23. ctkRangeSliderTest1.cpp
  24. ctkRangeWidgetTest1.cpp
  25. ctkDateRangeWidgetTest1.cpp
  26. ctkSettingsTest1.cpp
  27. ctkSliderWidgetTest1.cpp
  28. ctkTreeComboBoxTest1.cpp
  29. ctkWorkflowWidgetTest1.cpp
  30. ctkWorkflowWidgetTest2.cpp
  31. ctkExampleUseOfWorkflowWidgetUsingDerivedSteps.cpp
  32. ctkExampleUseOfWorkflowWidgetUsingSignalsAndSlots.cpp
  33. )
  34. SET (TestsToRun ${Tests})
  35. REMOVE (TestsToRun ${KIT}CppTests.cxx)
  36. SET(LIBRARY_NAME ${PROJECT_NAME})
  37. SET(Tests_SRCS
  38. ctkExampleDerivedWorkflowWidgetStep.cpp
  39. ctkExampleDerivedWorkflowWidgetStep.h
  40. ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.cpp
  41. ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.h
  42. )
  43. SET(Tests_MOC_SRCS
  44. ctkExampleDerivedWorkflowWidgetStep.h
  45. ctkExampleWorkflowWidgetStepUsingSignalsAndSlots.h
  46. )
  47. SET(Tests_MOC_CPP)
  48. QT4_WRAP_CPP(Tests_MOC_CPP ${Tests_MOC_SRCS})
  49. ADD_EXECUTABLE(${KIT}CppTests ${Tests} ${Tests_SRCS} ${Tests_MOC_CPP})
  50. TARGET_LINK_LIBRARIES(${KIT}CppTests ${LIBRARY_NAME})
  51. SET( KIT_TESTS ${CPP_TEST_PATH}/${KIT}CppTests)
  52. MACRO( SIMPLE_TEST TESTNAME )
  53. ADD_TEST( ${TESTNAME} ${KIT_TESTS} ${TESTNAME} )
  54. SET_PROPERTY(TEST ${TESTNAME} PROPERTY LABELS ${PROJECT_NAME})
  55. ENDMACRO( SIMPLE_TEST )
  56. #
  57. # Add Tests
  58. #
  59. SIMPLE_TEST( ctkActionsWidgetTest1 )
  60. SIMPLE_TEST( ctkAddRemoveComboBoxTest1 )
  61. SIMPLE_TEST( ctkAxesWidgetTest1 )
  62. SIMPLE_TEST( ctkButtonGroupTest1 )
  63. SIMPLE_TEST( ctkCheckBoxPixmapsTest1 )
  64. SIMPLE_TEST( ctkCheckableHeaderViewTest1 )
  65. SIMPLE_TEST( ctkCollapsibleButtonTest1 )
  66. SIMPLE_TEST( ctkCollapsibleGroupBoxTest1 )
  67. SIMPLE_TEST( ctkColorPickerButtonTest1 )
  68. SIMPLE_TEST( ctkComboBoxTest1 )
  69. SIMPLE_TEST( ctkConsoleWidgetTest1 )
  70. SIMPLE_TEST( ctkCoordinatesWidgetTest1 )
  71. SIMPLE_TEST( ctkDirectoryButtonTest1 )
  72. SIMPLE_TEST( ctkDoubleRangeSliderTest1 )
  73. SIMPLE_TEST( ctkDoubleSliderTest1 )
  74. SIMPLE_TEST( ctkFileDialogTest1 )
  75. SIMPLE_TEST( ctkFittedTextBrowserTest1 )
  76. SIMPLE_TEST( ctkMatrixWidgetTest1 )
  77. SIMPLE_TEST( ctkMatrixWidgetTest2 )
  78. SIMPLE_TEST( ctkMenuButtonTest1 )
  79. SIMPLE_TEST( ctkRangeSliderTest1 )
  80. SIMPLE_TEST( ctkRangeWidgetTest1 )
  81. SIMPLE_TEST( ctkDateRangeWidgetTest1 )
  82. SIMPLE_TEST( ctkSettingsTest1 )
  83. SIMPLE_TEST( ctkSliderWidgetTest1 )
  84. SIMPLE_TEST( ctkTreeComboBoxTest1 )
  85. SIMPLE_TEST( ctkWorkflowWidgetTest1 )
  86. SIMPLE_TEST( ctkWorkflowWidgetTest2 )
  87. SIMPLE_TEST( ctkExampleUseOfWorkflowWidgetUsingDerivedSteps )
  88. SIMPLE_TEST( ctkExampleUseOfWorkflowWidgetUsingSignalsAndSlots )