CMakeLists.txt 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. PROJECT(CTKWidgets)
  2. #
  3. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  4. #
  5. SET(KIT_export_directive "CTK_WIDGETS_EXPORT")
  6. # Additional directories to include
  7. SET(KIT_include_directories
  8. )
  9. # Source files
  10. SET(KIT_SRCS
  11. ctkWorkflowAbstractWidgetStep.cpp
  12. ctkWorkflowAbstractWidgetStep.h
  13. ctkWorkflowAbstractWidgetStep_p.h
  14. ctkActionsWidget.cpp
  15. ctkActionsWidget.h
  16. ctkAddRemoveComboBox.cpp
  17. ctkAddRemoveComboBox.h
  18. ctkButtonGroup.cpp
  19. ctkButtonGroup.h
  20. ctkCheckableHeaderView.cpp
  21. ctkCheckableHeaderView.h
  22. ctkCheckBoxPixmaps.cpp
  23. ctkCheckBoxPixmaps.h
  24. ctkComboBox.cpp
  25. ctkComboBox.h
  26. ctkCollapsibleButton.cpp
  27. ctkCollapsibleButton.h
  28. ctkCollapsibleGroupBox.cpp
  29. ctkCollapsibleGroupBox.h
  30. ctkColorPickerButton.cpp
  31. ctkColorPickerButton.h
  32. ctkConsoleWidget.cpp
  33. ctkConsoleWidget.h
  34. ctkCoordinatesWidget.cpp
  35. ctkCoordinatesWidget.h
  36. ctkDirectoryButton.cpp
  37. ctkDirectoryButton.h
  38. ctkDoubleRangeSlider.cpp
  39. ctkDoubleRangeSlider.h
  40. ctkDoubleSlider.cpp
  41. ctkDoubleSlider.h
  42. ctkDynamicSpacer.cpp
  43. ctkDynamicSpacer.h
  44. ctkFileDialog.cpp
  45. ctkFileDialog.h
  46. ctkFittedTextBrowser.cpp
  47. ctkFittedTextBrowser.h
  48. ctkIconEnginePlugin.cpp
  49. ctkIconEnginePlugin.h
  50. ctkMatrixWidget.cpp
  51. ctkMatrixWidget.h
  52. ctkMenuButton.cpp
  53. ctkMenuButton.h
  54. ctkPixmapIconEngine.cpp
  55. ctkPixmapIconEngine.h
  56. ctkRangeSlider.cpp
  57. ctkRangeSlider.h
  58. ctkRangeWidget.cpp
  59. ctkRangeWidget.h
  60. ctkSettings.cpp
  61. ctkSettings.h
  62. ctkSliderWidget.cpp
  63. ctkSliderWidget.h
  64. ctkTestApplication.cpp
  65. ctkTestApplication.h
  66. ctkTransferFunctionBarsItem.cpp
  67. ctkTransferFunctionBarsItem.h
  68. ctkTransferFunctionControlPointsItem.cpp
  69. ctkTransferFunctionControlPointsItem.h
  70. ctkTransferFunctionGradientItem.cpp
  71. ctkTransferFunctionGradientItem.h
  72. ctkTransferFunctionItem.cpp
  73. ctkTransferFunctionItem.h
  74. ctkTransferFunctionScene.cpp
  75. ctkTransferFunctionScene.h
  76. ctkTransferFunctionView.cpp
  77. ctkTransferFunctionView.h
  78. ctkTreeComboBox.cpp
  79. ctkTreeComboBox.h
  80. ctkWorkflowAbstractPagedWidget.cpp
  81. ctkWorkflowAbstractPagedWidget.h
  82. ctkWorkflowButtonBoxWidget.cpp
  83. ctkWorkflowButtonBoxWidget.h
  84. ctkWorkflowGroupBox.cpp
  85. ctkWorkflowGroupBox.h
  86. ctkWorkflowStackedWidget.cpp
  87. ctkWorkflowStackedWidget.h
  88. ctkWorkflowTabWidget.cpp
  89. ctkWorkflowTabWidget.h
  90. ctkWorkflowWidget.cpp
  91. ctkWorkflowWidget.h
  92. ctkWorkflowWidgetStep.cpp
  93. ctkWorkflowWidgetStep.h
  94. ctkDateRangeWidget.cpp
  95. ctkDateRangeWidget.h
  96. )
  97. # Headers that should run through moc
  98. SET(KIT_MOC_SRCS
  99. ctkWorkflowAbstractWidgetStep_p.h
  100. ctkActionsWidget.h
  101. ctkAddRemoveComboBox.h
  102. ctkButtonGroup.h
  103. ctkCheckableHeaderView.h
  104. ctkCheckBoxPixmaps.h
  105. ctkComboBox.h
  106. ctkCollapsibleButton.h
  107. ctkCollapsibleGroupBox.h
  108. ctkColorPickerButton.h
  109. ctkConsoleWidget.h
  110. ctkCoordinatesWidget.h
  111. ctkDirectoryButton.h
  112. ctkDoubleRangeSlider.h
  113. ctkDoubleSlider.h
  114. ctkDynamicSpacer.h
  115. ctkFileDialog.h
  116. ctkFittedTextBrowser.h
  117. ctkIconEnginePlugin.h
  118. ctkMatrixWidget.h
  119. ctkMenuButton.h
  120. ctkRangeSlider.h
  121. ctkRangeWidget.h
  122. ctkSettings.h
  123. ctkSliderWidget.h
  124. ctkTestApplication.h
  125. ctkTransferFunctionBarsItem.h
  126. ctkTransferFunctionControlPointsItem.h
  127. ctkTransferFunctionGradientItem.h
  128. ctkTransferFunctionItem.h
  129. ctkTransferFunctionScene.h
  130. ctkTransferFunctionView.h
  131. ctkTreeComboBox.h
  132. ctkWorkflowAbstractPagedWidget.h
  133. ctkWorkflowButtonBoxWidget.h
  134. ctkWorkflowGroupBox.h
  135. ctkWorkflowStackedWidget.h
  136. ctkWorkflowTabWidget.h
  137. ctkWorkflowWidget.h
  138. ctkWorkflowWidgetStep.h
  139. ctkDateRangeWidget.h
  140. )
  141. # UI files
  142. SET(KIT_UI_FORMS
  143. Resources/UI/ctkAddRemoveComboBox.ui
  144. Resources/UI/ctkRangeWidget.ui
  145. Resources/UI/ctkDateRangeWidget.ui
  146. Resources/UI/ctkSliderWidget.ui
  147. Resources/UI/ctkWorkflowGroupBox.ui
  148. )
  149. # Resources
  150. SET(KIT_resources
  151. Resources/CTKWidgets.qrc
  152. )
  153. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  154. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  155. ctkMacroGetTargetLibraries(KIT_target_libraries)
  156. ctkMacroBuildLib(
  157. NAME ${PROJECT_NAME}
  158. EXPORT_DIRECTIVE ${KIT_export_directive}
  159. INCLUDE_DIRECTORIES ${KIT_include_directories}
  160. SRCS ${KIT_SRCS}
  161. MOC_SRCS ${KIT_MOC_SRCS}
  162. UI_FORMS ${KIT_UI_FORMS}
  163. TARGET_LIBRARIES ${KIT_target_libraries}
  164. RESOURCES ${KIT_resources}
  165. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  166. )
  167. # Plugins
  168. ADD_SUBDIRECTORY(Plugins)
  169. # Testing
  170. IF(BUILD_TESTING)
  171. ADD_SUBDIRECTORY(Testing)
  172. ENDIF(BUILD_TESTING)