CMakeLists.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. ctkColorPickerButton.cpp
  14. ctkColorPickerButton.h
  15. ctkMatrixWidget.cpp
  16. ctkMatrixWidget.h
  17. ctkSettings.cpp
  18. ctkSettings.h
  19. ctkTestApplication.cpp
  20. ctkTestApplication.h
  21. ctkTransferFunctionItems.cpp
  22. ctkTransferFunctionItems.h
  23. ctkTransferFunctionWidget.cpp
  24. ctkTransferFunctionWidget.h
  25. )
  26. # Headers that should run through moc
  27. SET(KIT_MOC_SRCS
  28. ctkAddRemoveComboBox.h
  29. ctkColorPickerButton.h
  30. ctkMatrixWidget.h
  31. ctkSettings.h
  32. ctkTestApplication.h
  33. ctkTransferFunctionItems.h
  34. ctkTransferFunctionWidget.h
  35. )
  36. # UI files
  37. SET(KIT_UI_FORMS
  38. Resources/UI/ctkAddRemoveComboBox.ui
  39. )
  40. # Resources
  41. SET(KIT_resources
  42. )
  43. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  44. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  45. ctkMacroGetTargetLibraries(KIT_target_libraries)
  46. ctkMacroBuildLib(
  47. NAME ${PROJECT_NAME}
  48. EXPORT_DIRECTIVE ${KIT_export_directive}
  49. INCLUDE_DIRECTORIES ${KIT_include_directories}
  50. SRCS ${KIT_SRCS}
  51. MOC_SRCS ${KIT_MOC_SRCS}
  52. UI_FORMS ${KIT_UI_FORMS}
  53. TARGET_LIBRARIES ${KIT_target_libraries}
  54. RESOURCES ${KIT_resources}
  55. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  56. )
  57. # Plugins
  58. ADD_SUBDIRECTORY(Plugins)
  59. # Testing
  60. IF(BUILD_TESTING)
  61. ADD_SUBDIRECTORY(Testing)
  62. ENDIF(BUILD_TESTING)