CMakeLists.txt 2.9 KB

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