CMakeLists.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. ctkTransferFunctionItem.cpp
  60. ctkTransferFunctionItem.h
  61. ctkTransferFunctionWidget.cpp
  62. ctkTransferFunctionWidget.h
  63. ctkTransferFunctionScene.cpp
  64. ctkTransferFunctionScene.h
  65. ctkTreeComboBox.cpp
  66. ctkTreeComboBox.h
  67. )
  68. # Headers that should run through moc
  69. SET(KIT_MOC_SRCS
  70. ctkAddRemoveComboBox.h
  71. ctkButtonGroup.h
  72. ctkCheckableHeaderView.h
  73. ctkCheckBoxPixmaps.h
  74. ctkCollapsibleButton.h
  75. ctkCollapsibleGroupBox.h
  76. ctkColorPickerButton.h
  77. ctkConsoleWidget.h
  78. ctkCoordinatesWidget.h
  79. ctkDirectoryButton.h
  80. ctkDoubleRangeSlider.h
  81. ctkDoubleSlider.h
  82. ctkDynamicSpacer.h
  83. ctkFittedTextBrowser.h
  84. ctkMatrixWidget.h
  85. ctkMenuButton.h
  86. ctkRangeSlider.h
  87. ctkRangeWidget.h
  88. ctkSettings.h
  89. ctkSliderSpinBoxWidget.h
  90. ctkTestApplication.h
  91. ctkTitleComboBox.h
  92. ctkTransferFunctionControlPointsItem.h
  93. ctkTransferFunctionGradientItem.h
  94. ctkTransferFunctionItem.h
  95. ctkTransferFunctionControlPointsItem.h
  96. ctkTransferFunctionWidget.h
  97. ctkTransferFunctionScene.h
  98. ctkTreeComboBox.h
  99. )
  100. # UI files
  101. SET(KIT_UI_FORMS
  102. Resources/UI/ctkAddRemoveComboBox.ui
  103. Resources/UI/ctkRangeWidget.ui
  104. Resources/UI/ctkSliderSpinBoxWidget.ui
  105. )
  106. # Resources
  107. SET(KIT_resources
  108. Resources/CTKWidgets.qrc
  109. )
  110. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  111. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  112. ctkMacroGetTargetLibraries(KIT_target_libraries)
  113. ctkMacroBuildLib(
  114. NAME ${PROJECT_NAME}
  115. EXPORT_DIRECTIVE ${KIT_export_directive}
  116. INCLUDE_DIRECTORIES ${KIT_include_directories}
  117. SRCS ${KIT_SRCS}
  118. MOC_SRCS ${KIT_MOC_SRCS}
  119. UI_FORMS ${KIT_UI_FORMS}
  120. TARGET_LIBRARIES ${KIT_target_libraries}
  121. RESOURCES ${KIT_resources}
  122. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  123. )
  124. # Plugins
  125. ADD_SUBDIRECTORY(Plugins)
  126. # Testing
  127. IF(BUILD_TESTING)
  128. ADD_SUBDIRECTORY(Testing)
  129. ENDIF(BUILD_TESTING)