CMakeLists.txt 5.9 KB

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