CMakeLists.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. ctkActionsWidget.cpp
  12. ctkActionsWidget.h
  13. ctkAddRemoveComboBox.cpp
  14. ctkAddRemoveComboBox.h
  15. ctkButtonGroup.cpp
  16. ctkButtonGroup.h
  17. ctkCheckableHeaderView.cpp
  18. ctkCheckableHeaderView.h
  19. ctkCheckBoxPixmaps.cpp
  20. ctkCheckBoxPixmaps.h
  21. ctkComboBox.cpp
  22. ctkComboBox.h
  23. ctkCollapsibleButton.cpp
  24. ctkCollapsibleButton.h
  25. ctkCollapsibleGroupBox.cpp
  26. ctkCollapsibleGroupBox.h
  27. ctkColorPickerButton.cpp
  28. ctkColorPickerButton.h
  29. ctkConsoleWidget.cpp
  30. ctkConsoleWidget.h
  31. ctkCoordinatesWidget.cpp
  32. ctkCoordinatesWidget.h
  33. ctkDirectoryButton.cpp
  34. ctkDirectoryButton.h
  35. ctkDoubleRangeSlider.cpp
  36. ctkDoubleRangeSlider.h
  37. ctkDoubleSlider.cpp
  38. ctkDoubleSlider.h
  39. ctkDynamicSpacer.cpp
  40. ctkDynamicSpacer.h
  41. ctkFileDialog.cpp
  42. ctkFileDialog.h
  43. ctkFittedTextBrowser.cpp
  44. ctkFittedTextBrowser.h
  45. ctkIconEnginePlugin.cpp
  46. ctkIconEnginePlugin.h
  47. ctkMatrixWidget.cpp
  48. ctkMatrixWidget.h
  49. ctkMenuButton.cpp
  50. ctkMenuButton.h
  51. ctkPixmapIconEngine.cpp
  52. ctkPixmapIconEngine.h
  53. ctkRangeSlider.cpp
  54. ctkRangeSlider.h
  55. ctkRangeWidget.cpp
  56. ctkRangeWidget.h
  57. ctkSettings.cpp
  58. ctkSettings.h
  59. ctkSliderWidget.cpp
  60. ctkSliderWidget.h
  61. ctkTestApplication.cpp
  62. ctkTestApplication.h
  63. ctkTransferFunctionBarsItem.cpp
  64. ctkTransferFunctionBarsItem.h
  65. ctkTransferFunctionControlPointsItem.cpp
  66. ctkTransferFunctionControlPointsItem.h
  67. ctkTransferFunctionGradientItem.cpp
  68. ctkTransferFunctionGradientItem.h
  69. ctkTransferFunctionItem.cpp
  70. ctkTransferFunctionItem.h
  71. ctkTransferFunctionScene.cpp
  72. ctkTransferFunctionScene.h
  73. ctkTransferFunctionView.cpp
  74. ctkTransferFunctionView.h
  75. ctkTreeComboBox.cpp
  76. ctkTreeComboBox.h
  77. )
  78. # Headers that should run through moc
  79. SET(KIT_MOC_SRCS
  80. ctkActionsWidget.h
  81. ctkAddRemoveComboBox.h
  82. ctkButtonGroup.h
  83. ctkCheckableHeaderView.h
  84. ctkCheckBoxPixmaps.h
  85. ctkComboBox.h
  86. ctkCollapsibleButton.h
  87. ctkCollapsibleGroupBox.h
  88. ctkColorPickerButton.h
  89. ctkConsoleWidget.h
  90. ctkCoordinatesWidget.h
  91. ctkDirectoryButton.h
  92. ctkDoubleRangeSlider.h
  93. ctkDoubleSlider.h
  94. ctkDynamicSpacer.h
  95. ctkFileDialog.h
  96. ctkFittedTextBrowser.h
  97. ctkIconEnginePlugin.h
  98. ctkMatrixWidget.h
  99. ctkMenuButton.h
  100. ctkRangeSlider.h
  101. ctkRangeWidget.h
  102. ctkSettings.h
  103. ctkSliderWidget.h
  104. ctkTestApplication.h
  105. ctkTransferFunctionBarsItem.h
  106. ctkTransferFunctionControlPointsItem.h
  107. ctkTransferFunctionGradientItem.h
  108. ctkTransferFunctionItem.h
  109. ctkTransferFunctionScene.h
  110. ctkTransferFunctionView.h
  111. ctkTreeComboBox.h
  112. )
  113. # UI files
  114. SET(KIT_UI_FORMS
  115. Resources/UI/ctkAddRemoveComboBox.ui
  116. Resources/UI/ctkRangeWidget.ui
  117. Resources/UI/ctkSliderWidget.ui
  118. )
  119. # Resources
  120. SET(KIT_resources
  121. Resources/CTKWidgets.qrc
  122. )
  123. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  124. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  125. ctkMacroGetTargetLibraries(KIT_target_libraries)
  126. ctkMacroBuildLib(
  127. NAME ${PROJECT_NAME}
  128. EXPORT_DIRECTIVE ${KIT_export_directive}
  129. INCLUDE_DIRECTORIES ${KIT_include_directories}
  130. SRCS ${KIT_SRCS}
  131. MOC_SRCS ${KIT_MOC_SRCS}
  132. UI_FORMS ${KIT_UI_FORMS}
  133. TARGET_LIBRARIES ${KIT_target_libraries}
  134. RESOURCES ${KIT_resources}
  135. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  136. )
  137. # Plugins
  138. ADD_SUBDIRECTORY(Plugins)
  139. # Testing
  140. IF(BUILD_TESTING)
  141. ADD_SUBDIRECTORY(Testing)
  142. ENDIF(BUILD_TESTING)