CMakeLists.txt 7.0 KB

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