CMakeLists.txt 3.1 KB

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