CMakeLists.txt 5.5 KB

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