CMakeLists.txt 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. ctkActionsWidget.cpp
  9. ctkActionsWidget.h
  10. ctkAddRemoveComboBox.cpp
  11. ctkAddRemoveComboBox.h
  12. ctkAxesWidget.cpp
  13. ctkAxesWidget.h
  14. ctkButtonGroup.cpp
  15. ctkButtonGroup.h
  16. ctkCheckableComboBox.cpp
  17. ctkCheckableComboBox.h
  18. ctkCheckableHeaderView.cpp
  19. ctkCheckableHeaderView.h
  20. ctkCheckBoxPixmaps.cpp
  21. ctkCheckBoxPixmaps.h
  22. ctkCheckablePushButton.cpp
  23. ctkCheckablePushButton.h
  24. ctkComboBox.cpp
  25. ctkComboBox.h
  26. ctkCollapsibleButton.cpp
  27. ctkCollapsibleButton.h
  28. ctkCollapsibleGroupBox.cpp
  29. ctkCollapsibleGroupBox.h
  30. ctkColorDialog.cpp
  31. ctkColorDialog.h
  32. ctkColorPickerButton.cpp
  33. ctkColorPickerButton.h
  34. ctkConsole.cpp
  35. ctkConsole.h
  36. ctkConsole_p.h
  37. ctkConfirmExitDialog.cpp
  38. ctkConfirmExitDialog.h
  39. ctkCoordinatesWidget.cpp
  40. ctkCoordinatesWidget.h
  41. ctkCrosshairLabel.cpp
  42. ctkCrosshairLabel.h
  43. ctkDirectoryButton.cpp
  44. ctkDirectoryButton.h
  45. ctkDoubleRangeSlider.cpp
  46. ctkDoubleRangeSlider.h
  47. ctkDoubleSlider.cpp
  48. ctkDoubleSlider.h
  49. ctkDynamicSpacer.cpp
  50. ctkDynamicSpacer.h
  51. ctkErrorLogStatusMessageHandler.cpp
  52. ctkErrorLogStatusMessageHandler.h
  53. ctkErrorLogWidget.cpp
  54. ctkErrorLogWidget.h
  55. ctkFileDialog.cpp
  56. ctkFileDialog.h
  57. ctkFittedTextBrowser.cpp
  58. ctkFittedTextBrowser.h
  59. ctkFlowLayout.cpp
  60. ctkFlowLayout.h
  61. ctkFontButton.cpp
  62. ctkFontButton.h
  63. ctkIconEnginePlugin.cpp
  64. ctkIconEnginePlugin.h
  65. ctkLayoutManager.cpp
  66. ctkLayoutManager.h
  67. ctkMaterialPropertyPreviewLabel.cpp
  68. ctkMaterialPropertyPreviewLabel.h
  69. ctkMaterialPropertyWidget.cpp
  70. ctkMaterialPropertyWidget.h
  71. ctkMatrixWidget.cpp
  72. ctkMatrixWidget.h
  73. ctkMenuButton.cpp
  74. ctkMenuButton.h
  75. ctkModalityWidget.cpp
  76. ctkModalityWidget.h
  77. ctkPathLineEdit.cpp
  78. ctkPathLineEdit.h
  79. ctkPixmapIconEngine.cpp
  80. ctkPixmapIconEngine.h
  81. ctkPopupWidget.cpp
  82. ctkPopupWidget.h
  83. ctkRangeSlider.cpp
  84. ctkRangeSlider.h
  85. ctkRangeWidget.cpp
  86. ctkRangeWidget.h
  87. ctkScreenshotDialog.cpp
  88. ctkScreenshotDialog.h
  89. ctkScreenshotDialog_p.h
  90. ctkSettings.cpp
  91. ctkSettings.h
  92. ctkSettingsDialog.cpp
  93. ctkSettingsDialog.h
  94. ctkSettingsPanel.cpp
  95. ctkSettingsPanel.h
  96. ctkSimpleLayoutManager.cpp
  97. ctkSimpleLayoutManager.h
  98. ctkQImageView.cpp
  99. ctkQImageView.h
  100. ctkSliderWidget.cpp
  101. ctkSliderWidget.h
  102. ctkTestApplication.cpp
  103. ctkTestApplication.h
  104. ctkThumbnailListWidget.cpp
  105. ctkThumbnailListWidget.h
  106. ctkThumbnailListWidget_p.h
  107. ctkThumbnailWidget.cpp
  108. ctkThumbnailWidget.h
  109. ctkToolTipTrapper.cpp
  110. ctkToolTipTrapper.h
  111. ctkTransferFunctionBarsItem.cpp
  112. ctkTransferFunctionBarsItem.h
  113. ctkTransferFunctionControlPointsItem.cpp
  114. ctkTransferFunctionControlPointsItem.h
  115. ctkTransferFunctionGradientItem.cpp
  116. ctkTransferFunctionGradientItem.h
  117. ctkTransferFunctionItem.cpp
  118. ctkTransferFunctionItem.h
  119. ctkTransferFunctionScene.cpp
  120. ctkTransferFunctionScene.h
  121. ctkTransferFunctionView.cpp
  122. ctkTransferFunctionView.h
  123. ctkTreeComboBox.cpp
  124. ctkTreeComboBox.h
  125. ctkWidgetsUtils.cpp
  126. ctkWidgetsUtils.h
  127. ctkWorkflowAbstractPagedWidget.cpp
  128. ctkWorkflowAbstractPagedWidget.h
  129. ctkWorkflowButtonBoxWidget.cpp
  130. ctkWorkflowButtonBoxWidget.h
  131. ctkWorkflowGroupBox.cpp
  132. ctkWorkflowGroupBox.h
  133. ctkWorkflowStackedWidget.cpp
  134. ctkWorkflowStackedWidget.h
  135. ctkWorkflowTabWidget.cpp
  136. ctkWorkflowTabWidget.h
  137. ctkWorkflowWidget.cpp
  138. ctkWorkflowWidget.h
  139. ctkWorkflowWidgetStep.cpp
  140. ctkWorkflowWidgetStep_p.h
  141. ctkWorkflowWidgetStep.h
  142. ctkDateRangeWidget.cpp
  143. ctkDateRangeWidget.h
  144. )
  145. IF(CTK_WRAP_PYTHONQT_LIGHT)
  146. LIST(APPEND KIT_SRCS
  147. ctkWidgetsPythonQtDecorators.h
  148. )
  149. # Let's make sure the decorator are not wrapped !
  150. SET_SOURCE_FILES_PROPERTIES(
  151. ctkWidgetsPythonQtDecorators.h
  152. WRAP_EXCLUDE
  153. )
  154. ENDIF()
  155. # Headers that should run through moc
  156. SET(KIT_MOC_SRCS
  157. ctkWorkflowAbstractPagedWidget.h
  158. ctkActionsWidget.h
  159. ctkAxesWidget.h
  160. ctkAddRemoveComboBox.h
  161. ctkButtonGroup.h
  162. ctkCheckableComboBox.h
  163. ctkCheckableHeaderView.h
  164. ctkCheckablePushButton.h
  165. ctkCheckBoxPixmaps.h
  166. ctkComboBox.h
  167. ctkCollapsibleButton.h
  168. ctkCollapsibleGroupBox.h
  169. ctkColorDialog.h
  170. ctkColorPickerButton.h
  171. ctkConfirmExitDialog.h
  172. ctkConsole.h
  173. ctkConsole_p.h
  174. ctkCoordinatesWidget.h
  175. ctkCrosshairLabel.h
  176. ctkDirectoryButton.h
  177. ctkDoubleRangeSlider.h
  178. ctkDoubleSlider.h
  179. ctkDynamicSpacer.h
  180. ctkErrorLogWidget.h
  181. ctkErrorLogStatusMessageHandler.h
  182. ctkFileDialog.h
  183. ctkFittedTextBrowser.h
  184. ctkFlowLayout.h
  185. ctkFontButton.h
  186. ctkIconEnginePlugin.h
  187. ctkLayoutManager.h
  188. ctkMaterialPropertyPreviewLabel.h
  189. ctkMaterialPropertyWidget.h
  190. ctkMatrixWidget.h
  191. ctkMenuButton.h
  192. ctkModalityWidget.h
  193. ctkPathLineEdit.h
  194. ctkPopupWidget.h
  195. ctkRangeSlider.h
  196. ctkRangeWidget.h
  197. ctkScreenshotDialog.h
  198. ctkScreenshotDialog_p.h
  199. ctkSettings.h
  200. ctkSettingsDialog.h
  201. ctkSettingsPanel.h
  202. ctkSimpleLayoutManager.h
  203. ctkQImageView.h
  204. ctkSliderWidget.h
  205. ctkTestApplication.h
  206. ctkThumbnailListWidget.h
  207. ctkThumbnailWidget.h
  208. ctkToolTipTrapper.h
  209. ctkTransferFunctionBarsItem.h
  210. ctkTransferFunctionControlPointsItem.h
  211. ctkTransferFunctionGradientItem.h
  212. ctkTransferFunctionItem.h
  213. ctkTransferFunctionScene.h
  214. ctkTransferFunctionView.h
  215. ctkTreeComboBox.h
  216. ctkWorkflowAbstractPagedWidget.h
  217. ctkWorkflowButtonBoxWidget.h
  218. ctkWorkflowGroupBox.h
  219. ctkWorkflowStackedWidget.h
  220. ctkWorkflowTabWidget.h
  221. ctkWorkflowWidget.h
  222. ctkWorkflowWidgetStep.h
  223. ctkWorkflowWidgetStep_p.h
  224. ctkDateRangeWidget.h
  225. )
  226. IF(CTK_WRAP_PYTHONQT_LIGHT)
  227. LIST(APPEND KIT_MOC_SRCS
  228. ctkWidgetsPythonQtDecorators.h
  229. )
  230. ENDIF()
  231. # UI files
  232. SET(KIT_UI_FORMS
  233. Resources/UI/ctkAddRemoveComboBox.ui
  234. Resources/UI/ctkRangeWidget.ui
  235. Resources/UI/ctkDateRangeWidget.ui
  236. Resources/UI/ctkErrorLogWidget.ui
  237. Resources/UI/ctkMaterialPropertyWidget.ui
  238. Resources/UI/ctkModalityWidget.ui
  239. Resources/UI/ctkScreenshotDialog.ui
  240. Resources/UI/ctkSettingsDialog.ui
  241. Resources/UI/ctkSliderWidget.ui
  242. Resources/UI/ctkThumbnailListWidget.ui
  243. Resources/UI/ctkThumbnailWidget.ui
  244. Resources/UI/ctkWorkflowGroupBox.ui
  245. )
  246. # Resources
  247. SET(KIT_resources
  248. Resources/ctkWidgets.qrc
  249. )
  250. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  251. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  252. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  253. ctkMacroBuildLib(
  254. NAME ${PROJECT_NAME}
  255. EXPORT_DIRECTIVE ${KIT_export_directive}
  256. SRCS ${KIT_SRCS}
  257. MOC_SRCS ${KIT_MOC_SRCS}
  258. UI_FORMS ${KIT_UI_FORMS}
  259. TARGET_LIBRARIES ${KIT_target_libraries}
  260. RESOURCES ${KIT_resources}
  261. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  262. )
  263. # Plugins
  264. IF(BUILD_QTDESIGNER_PLUGINS)
  265. ADD_SUBDIRECTORY(Plugins)
  266. ENDIF()
  267. # Testing
  268. IF(BUILD_TESTING)
  269. ADD_SUBDIRECTORY(Testing)
  270. ENDIF(BUILD_TESTING)