CMakeLists.txt 6.8 KB

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