CMakeLists.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. PROJECT(CTKWidgets)
  2. #
  3. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  4. #
  5. SET(KIT_export_directive "CTK_WIDGETS_EXPORT")
  6. # Source files
  7. SET(KIT_SRCS
  8. ctkWorkflowAbstractWidgetStep.cpp
  9. ctkWorkflowAbstractWidgetStep.h
  10. ctkWorkflowAbstractWidgetStep_p.h
  11. ctkActionsWidget.cpp
  12. ctkActionsWidget.h
  13. ctkAddRemoveComboBox.cpp
  14. ctkAddRemoveComboBox.h
  15. ctkAxesWidget.cpp
  16. ctkAxesWidget.h
  17. ctkButtonGroup.cpp
  18. ctkButtonGroup.h
  19. ctkCheckableHeaderView.cpp
  20. ctkCheckableHeaderView.h
  21. ctkCheckBoxPixmaps.cpp
  22. ctkCheckBoxPixmaps.h
  23. ctkComboBox.cpp
  24. ctkComboBox.h
  25. ctkCollapsibleButton.cpp
  26. ctkCollapsibleButton.h
  27. ctkCollapsibleGroupBox.cpp
  28. ctkCollapsibleGroupBox.h
  29. ctkColorPickerButton.cpp
  30. ctkColorPickerButton.h
  31. ctkConsoleWidget.cpp
  32. ctkConsoleWidget.h
  33. ctkCoordinatesWidget.cpp
  34. ctkCoordinatesWidget.h
  35. ctkDirectoryButton.cpp
  36. ctkDirectoryButton.h
  37. ctkDoubleRangeSlider.cpp
  38. ctkDoubleRangeSlider.h
  39. ctkDoubleSlider.cpp
  40. ctkDoubleSlider.h
  41. ctkDynamicSpacer.cpp
  42. ctkDynamicSpacer.h
  43. ctkFileDialog.cpp
  44. ctkFileDialog.h
  45. ctkFittedTextBrowser.cpp
  46. ctkFittedTextBrowser.h
  47. ctkIconEnginePlugin.cpp
  48. ctkIconEnginePlugin.h
  49. ctkMatrixWidget.cpp
  50. ctkMatrixWidget.h
  51. ctkMenuButton.cpp
  52. ctkMenuButton.h
  53. ctkPixmapIconEngine.cpp
  54. ctkPixmapIconEngine.h
  55. ctkRangeSlider.cpp
  56. ctkRangeSlider.h
  57. ctkRangeWidget.cpp
  58. ctkRangeWidget.h
  59. ctkScreenshotDialog.cpp
  60. ctkScreenshotDialog.h
  61. ctkScreenshotDialog_p.h
  62. ctkSettings.cpp
  63. ctkSettings.h
  64. ctkSliderWidget.cpp
  65. ctkSliderWidget.h
  66. ctkTestApplication.cpp
  67. ctkTestApplication.h
  68. ctkTransferFunctionBarsItem.cpp
  69. ctkTransferFunctionBarsItem.h
  70. ctkTransferFunctionControlPointsItem.cpp
  71. ctkTransferFunctionControlPointsItem.h
  72. ctkTransferFunctionGradientItem.cpp
  73. ctkTransferFunctionGradientItem.h
  74. ctkTransferFunctionItem.cpp
  75. ctkTransferFunctionItem.h
  76. ctkTransferFunctionScene.cpp
  77. ctkTransferFunctionScene.h
  78. ctkTransferFunctionView.cpp
  79. ctkTransferFunctionView.h
  80. ctkTreeComboBox.cpp
  81. ctkTreeComboBox.h
  82. ctkWorkflowAbstractPagedWidget.cpp
  83. ctkWorkflowAbstractPagedWidget.h
  84. ctkWorkflowButtonBoxWidget.cpp
  85. ctkWorkflowButtonBoxWidget.h
  86. ctkWorkflowGroupBox.cpp
  87. ctkWorkflowGroupBox.h
  88. ctkWorkflowStackedWidget.cpp
  89. ctkWorkflowStackedWidget.h
  90. ctkWorkflowTabWidget.cpp
  91. ctkWorkflowTabWidget.h
  92. ctkWorkflowWidget.cpp
  93. ctkWorkflowWidget.h
  94. ctkWorkflowWidgetStep.cpp
  95. ctkWorkflowWidgetStep.h
  96. ctkDateRangeWidget.cpp
  97. ctkDateRangeWidget.h
  98. )
  99. # Headers that should run through moc
  100. SET(KIT_MOC_SRCS
  101. ctkWorkflowAbstractWidgetStep_p.h
  102. ctkActionsWidget.h
  103. ctkAxesWidget.h
  104. ctkAddRemoveComboBox.h
  105. ctkButtonGroup.h
  106. ctkCheckableHeaderView.h
  107. ctkCheckBoxPixmaps.h
  108. ctkComboBox.h
  109. ctkCollapsibleButton.h
  110. ctkCollapsibleGroupBox.h
  111. ctkColorPickerButton.h
  112. ctkConsoleWidget.h
  113. ctkCoordinatesWidget.h
  114. ctkDirectoryButton.h
  115. ctkDoubleRangeSlider.h
  116. ctkDoubleSlider.h
  117. ctkDynamicSpacer.h
  118. ctkFileDialog.h
  119. ctkFittedTextBrowser.h
  120. ctkIconEnginePlugin.h
  121. ctkMatrixWidget.h
  122. ctkMenuButton.h
  123. ctkRangeSlider.h
  124. ctkRangeWidget.h
  125. ctkScreenshotDialog.h
  126. ctkScreenshotDialog_p.h
  127. ctkSettings.h
  128. ctkSliderWidget.h
  129. ctkTestApplication.h
  130. ctkTransferFunctionBarsItem.h
  131. ctkTransferFunctionControlPointsItem.h
  132. ctkTransferFunctionGradientItem.h
  133. ctkTransferFunctionItem.h
  134. ctkTransferFunctionScene.h
  135. ctkTransferFunctionView.h
  136. ctkTreeComboBox.h
  137. ctkWorkflowAbstractPagedWidget.h
  138. ctkWorkflowButtonBoxWidget.h
  139. ctkWorkflowGroupBox.h
  140. ctkWorkflowStackedWidget.h
  141. ctkWorkflowTabWidget.h
  142. ctkWorkflowWidget.h
  143. ctkWorkflowWidgetStep.h
  144. ctkDateRangeWidget.h
  145. )
  146. # UI files
  147. SET(KIT_UI_FORMS
  148. Resources/UI/ctkAddRemoveComboBox.ui
  149. Resources/UI/ctkRangeWidget.ui
  150. Resources/UI/ctkDateRangeWidget.ui
  151. Resources/UI/ctkScreenshotDialog.ui
  152. Resources/UI/ctkSliderWidget.ui
  153. Resources/UI/ctkWorkflowGroupBox.ui
  154. )
  155. # Resources
  156. SET(KIT_resources
  157. Resources/CTKWidgets.qrc
  158. )
  159. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  160. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  161. ctkMacroGetTargetLibraries(KIT_target_libraries)
  162. ctkMacroBuildLib(
  163. NAME ${PROJECT_NAME}
  164. EXPORT_DIRECTIVE ${KIT_export_directive}
  165. SRCS ${KIT_SRCS}
  166. MOC_SRCS ${KIT_MOC_SRCS}
  167. UI_FORMS ${KIT_UI_FORMS}
  168. TARGET_LIBRARIES ${KIT_target_libraries}
  169. RESOURCES ${KIT_resources}
  170. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  171. )
  172. # Plugins
  173. ADD_SUBDIRECTORY(Plugins)
  174. # Testing
  175. IF(BUILD_TESTING)
  176. ADD_SUBDIRECTORY(Testing)
  177. ENDIF(BUILD_TESTING)