CMakeLists.txt 5.7 KB

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