CMakeLists.txt 4.8 KB

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