CMakeLists.txt 4.8 KB

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