CMakeLists.txt 6.8 KB

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