CMakeLists.txt 891 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. PROJECT(CTKCore)
  2. #
  3. # See CTK/CMake/CTKBuildQtLibMacro.cmake for details
  4. #
  5. SET(KIT_export_directive "Q_CTK_CORE_EXPORT")
  6. # Additional directories to include
  7. SET(KIT_include_directories
  8. )
  9. # Source files
  10. SET(KIT_SRCS
  11. qCTKUtils.cxx
  12. qCTKUtils.h
  13. )
  14. # Headers that should run through moc
  15. SET(KIT_MOC_SRCS
  16. )
  17. # UI files
  18. SET(KIT_UI_FORMS
  19. )
  20. # Resources
  21. SET(KIT_resources
  22. )
  23. # Additional Target libraries
  24. SET(KIT_target_libraries
  25. ${QT_LIBRARIES}
  26. )
  27. ctk_build_qtlib(
  28. NAME ${PROJECT_NAME}
  29. EXPORT_DIRECTIVE ${KIT_export_directive}
  30. INCLUDE_DIRECTORIES ${KIT_include_directories}
  31. SRCS ${KIT_SRCS}
  32. MOC_SRCS ${KIT_MOC_SRCS}
  33. UI_FORMS ${KIT_UI_FORMS}
  34. TARGET_LIBRARIES ${KIT_target_libraries}
  35. RESOURCES ${KIT_resources}
  36. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  37. )
  38. # Plugins
  39. #ADD_SUBDIRECTORY(Plugins)
  40. # Testing
  41. IF(BUILD_TESTING)
  42. ADD_SUBDIRECTORY(Testing)
  43. ENDIF(BUILD_TESTING)