CMakeLists.txt 4.9 KB

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