CMakeLists.txt 1.3 KB

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