CMakeLists.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. ctkConfirmExitDialog.cpp
  38. ctkConfirmExitDialog.h
  39. ctkCoordinatesWidget.cpp
  40. ctkCoordinatesWidget.h
  41. ctkDirectoryButton.cpp
  42. ctkDirectoryButton.h
  43. ctkDoubleRangeSlider.cpp
  44. ctkDoubleRangeSlider.h
  45. ctkDoubleSlider.cpp
  46. ctkDoubleSlider.h
  47. ctkDynamicSpacer.cpp
  48. ctkDynamicSpacer.h
  49. ctkFileDialog.cpp
  50. ctkFileDialog.h
  51. ctkFittedTextBrowser.cpp
  52. ctkFittedTextBrowser.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. 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.h
  114. ctkDateRangeWidget.cpp
  115. ctkDateRangeWidget.h
  116. )
  117. # Headers that should run through moc
  118. SET(KIT_MOC_SRCS
  119. ctkWorkflowAbstractWidgetStep_p.h
  120. ctkActionsWidget.h
  121. ctkAxesWidget.h
  122. ctkAddRemoveComboBox.h
  123. ctkButtonGroup.h
  124. ctkCheckableHeaderView.h
  125. ctkCheckablePushButton.h
  126. ctkCheckBoxPixmaps.h
  127. ctkComboBox.h
  128. ctkCollapsibleButton.h
  129. ctkCollapsibleGroupBox.h
  130. ctkColorDialog.h
  131. ctkColorPickerButton.h
  132. ctkConfirmExitDialog.h
  133. ctkConsoleWidget.h
  134. ctkCoordinatesWidget.h
  135. ctkDirectoryButton.h
  136. ctkDoubleRangeSlider.h
  137. ctkDoubleSlider.h
  138. ctkDynamicSpacer.h
  139. ctkFileDialog.h
  140. ctkFittedTextBrowser.h
  141. ctkFontButton.h
  142. ctkIconEnginePlugin.h
  143. ctkMaterialPropertyPreviewLabel.h
  144. ctkMaterialPropertyWidget.h
  145. ctkMatrixWidget.h
  146. ctkMenuButton.h
  147. ctkRangeSlider.h
  148. ctkRangeWidget.h
  149. ctkScreenshotDialog.h
  150. ctkScreenshotDialog_p.h
  151. ctkSettings.h
  152. ctkSettingsDialog.h
  153. ctkSettingsPanel.h
  154. ctkSliderWidget.h
  155. ctkTestApplication.h
  156. ctkToolTipTrapper.h
  157. ctkTransferFunctionBarsItem.h
  158. ctkTransferFunctionControlPointsItem.h
  159. ctkTransferFunctionGradientItem.h
  160. ctkTransferFunctionItem.h
  161. ctkTransferFunctionScene.h
  162. ctkTransferFunctionView.h
  163. ctkTreeComboBox.h
  164. ctkWorkflowAbstractPagedWidget.h
  165. ctkWorkflowButtonBoxWidget.h
  166. ctkWorkflowGroupBox.h
  167. ctkWorkflowStackedWidget.h
  168. ctkWorkflowTabWidget.h
  169. ctkWorkflowWidget.h
  170. ctkWorkflowWidgetStep.h
  171. ctkDateRangeWidget.h
  172. )
  173. # UI files
  174. SET(KIT_UI_FORMS
  175. Resources/UI/ctkAddRemoveComboBox.ui
  176. Resources/UI/ctkRangeWidget.ui
  177. Resources/UI/ctkDateRangeWidget.ui
  178. Resources/UI/ctkMaterialPropertyWidget.ui
  179. Resources/UI/ctkScreenshotDialog.ui
  180. Resources/UI/ctkSettingsDialog.ui
  181. Resources/UI/ctkSliderWidget.ui
  182. Resources/UI/ctkWorkflowGroupBox.ui
  183. )
  184. # Resources
  185. SET(KIT_resources
  186. Resources/CTKWidgets.qrc
  187. )
  188. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  189. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  190. ctkMacroGetTargetLibraries(KIT_target_libraries)
  191. ctkMacroBuildLib(
  192. NAME ${PROJECT_NAME}
  193. EXPORT_DIRECTIVE ${KIT_export_directive}
  194. SRCS ${KIT_SRCS}
  195. MOC_SRCS ${KIT_MOC_SRCS}
  196. UI_FORMS ${KIT_UI_FORMS}
  197. TARGET_LIBRARIES ${KIT_target_libraries}
  198. RESOURCES ${KIT_resources}
  199. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  200. )
  201. # Plugins
  202. ADD_SUBDIRECTORY(Plugins)
  203. # Testing
  204. IF(BUILD_TESTING)
  205. ADD_SUBDIRECTORY(Testing)
  206. ENDIF(BUILD_TESTING)