CMakeLists.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. ctkWorkflowAbstractWidgetStep.cpp
  9. ctkWorkflowAbstractWidgetStep.h
  10. ctkWorkflowAbstractWidgetStep_p.h
  11. ctkActionsWidget.cpp
  12. ctkActionsWidget.h
  13. ctkAddRemoveComboBox.cpp
  14. ctkAddRemoveComboBox.h
  15. ctkAxesWidget.cpp
  16. ctkAxesWidget.h
  17. ctkButtonGroup.cpp
  18. ctkButtonGroup.h
  19. ctkCheckableHeaderView.cpp
  20. ctkCheckableHeaderView.h
  21. ctkCheckBoxPixmaps.cpp
  22. ctkCheckBoxPixmaps.h
  23. ctkCheckablePushButton.cpp
  24. ctkCheckablePushButton.h
  25. ctkComboBox.cpp
  26. ctkComboBox.h
  27. ctkCollapsibleButton.cpp
  28. ctkCollapsibleButton.h
  29. ctkCollapsibleGroupBox.cpp
  30. ctkCollapsibleGroupBox.h
  31. ctkColorDialog.cpp
  32. ctkColorDialog.h
  33. ctkColorPickerButton.cpp
  34. ctkColorPickerButton.h
  35. ctkConsoleWidget.cpp
  36. ctkConsoleWidget.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. ctkPixmapIconEngine.cpp
  64. ctkPixmapIconEngine.h
  65. ctkRangeSlider.cpp
  66. ctkRangeSlider.h
  67. ctkRangeWidget.cpp
  68. ctkRangeWidget.h
  69. ctkScreenshotDialog.cpp
  70. ctkScreenshotDialog.h
  71. ctkScreenshotDialog_p.h
  72. ctkSettings.cpp
  73. ctkSettings.h
  74. ctkSettingsPanel.cpp
  75. ctkSettingsPanel.h
  76. ctkSettingsWidget.cpp
  77. ctkSettingsWidget.h
  78. ctkSliderWidget.cpp
  79. ctkSliderWidget.h
  80. ctkTestApplication.cpp
  81. ctkTestApplication.h
  82. ctkToolTipTrapper.cpp
  83. ctkToolTipTrapper.h
  84. ctkTransferFunctionBarsItem.cpp
  85. ctkTransferFunctionBarsItem.h
  86. ctkTransferFunctionControlPointsItem.cpp
  87. ctkTransferFunctionControlPointsItem.h
  88. ctkTransferFunctionGradientItem.cpp
  89. ctkTransferFunctionGradientItem.h
  90. ctkTransferFunctionItem.cpp
  91. ctkTransferFunctionItem.h
  92. ctkTransferFunctionScene.cpp
  93. ctkTransferFunctionScene.h
  94. ctkTransferFunctionView.cpp
  95. ctkTransferFunctionView.h
  96. ctkTreeComboBox.cpp
  97. ctkTreeComboBox.h
  98. ctkWorkflowAbstractPagedWidget.cpp
  99. ctkWorkflowAbstractPagedWidget.h
  100. ctkWorkflowButtonBoxWidget.cpp
  101. ctkWorkflowButtonBoxWidget.h
  102. ctkWorkflowGroupBox.cpp
  103. ctkWorkflowGroupBox.h
  104. ctkWorkflowStackedWidget.cpp
  105. ctkWorkflowStackedWidget.h
  106. ctkWorkflowTabWidget.cpp
  107. ctkWorkflowTabWidget.h
  108. ctkWorkflowWidget.cpp
  109. ctkWorkflowWidget.h
  110. ctkWorkflowWidgetStep.cpp
  111. ctkWorkflowWidgetStep.h
  112. ctkDateRangeWidget.cpp
  113. ctkDateRangeWidget.h
  114. )
  115. # Headers that should run through moc
  116. SET(KIT_MOC_SRCS
  117. ctkWorkflowAbstractWidgetStep_p.h
  118. ctkActionsWidget.h
  119. ctkAxesWidget.h
  120. ctkAddRemoveComboBox.h
  121. ctkButtonGroup.h
  122. ctkCheckableHeaderView.h
  123. ctkCheckablePushButton.h
  124. ctkCheckBoxPixmaps.h
  125. ctkComboBox.h
  126. ctkCollapsibleButton.h
  127. ctkCollapsibleGroupBox.h
  128. ctkColorDialog.h
  129. ctkColorPickerButton.h
  130. ctkConsoleWidget.h
  131. ctkCoordinatesWidget.h
  132. ctkDirectoryButton.h
  133. ctkDoubleRangeSlider.h
  134. ctkDoubleSlider.h
  135. ctkDynamicSpacer.h
  136. ctkFileDialog.h
  137. ctkFittedTextBrowser.h
  138. ctkFontButton.h
  139. ctkIconEnginePlugin.h
  140. ctkMaterialPropertyPreviewLabel.h
  141. ctkMaterialPropertyWidget.h
  142. ctkMatrixWidget.h
  143. ctkMenuButton.h
  144. ctkRangeSlider.h
  145. ctkRangeWidget.h
  146. ctkScreenshotDialog.h
  147. ctkScreenshotDialog_p.h
  148. ctkSettings.h
  149. ctkSettingsPanel.h
  150. ctkSettingsWidget.h
  151. ctkSliderWidget.h
  152. ctkTestApplication.h
  153. ctkToolTipTrapper.h
  154. ctkTransferFunctionBarsItem.h
  155. ctkTransferFunctionControlPointsItem.h
  156. ctkTransferFunctionGradientItem.h
  157. ctkTransferFunctionItem.h
  158. ctkTransferFunctionScene.h
  159. ctkTransferFunctionView.h
  160. ctkTreeComboBox.h
  161. ctkWorkflowAbstractPagedWidget.h
  162. ctkWorkflowButtonBoxWidget.h
  163. ctkWorkflowGroupBox.h
  164. ctkWorkflowStackedWidget.h
  165. ctkWorkflowTabWidget.h
  166. ctkWorkflowWidget.h
  167. ctkWorkflowWidgetStep.h
  168. ctkDateRangeWidget.h
  169. )
  170. # UI files
  171. SET(KIT_UI_FORMS
  172. Resources/UI/ctkAddRemoveComboBox.ui
  173. Resources/UI/ctkRangeWidget.ui
  174. Resources/UI/ctkDateRangeWidget.ui
  175. Resources/UI/ctkMaterialPropertyWidget.ui
  176. Resources/UI/ctkScreenshotDialog.ui
  177. Resources/UI/ctkSettingsWidget.ui
  178. Resources/UI/ctkSliderWidget.ui
  179. Resources/UI/ctkWorkflowGroupBox.ui
  180. )
  181. # Resources
  182. SET(KIT_resources
  183. Resources/CTKWidgets.qrc
  184. )
  185. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  186. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  187. ctkMacroGetTargetLibraries(KIT_target_libraries)
  188. ctkMacroBuildLib(
  189. NAME ${PROJECT_NAME}
  190. EXPORT_DIRECTIVE ${KIT_export_directive}
  191. SRCS ${KIT_SRCS}
  192. MOC_SRCS ${KIT_MOC_SRCS}
  193. UI_FORMS ${KIT_UI_FORMS}
  194. TARGET_LIBRARIES ${KIT_target_libraries}
  195. RESOURCES ${KIT_resources}
  196. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  197. )
  198. # Plugins
  199. ADD_SUBDIRECTORY(Plugins)
  200. # Testing
  201. IF(BUILD_TESTING)
  202. ADD_SUBDIRECTORY(Testing)
  203. ENDIF(BUILD_TESTING)