CMakeLists.txt 5.5 KB

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