CMakeLists.txt 6.1 KB

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