CMakeLists.txt 3.3 KB

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