Library for managing partitions. Common code for KDE Partition Manager and other projects. https://www.kde.org/applications/system/kdepartitionmanager/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. set(application_interface_xml org.kde.kpmcore.applicationinterface.xml)
  2. set(helper_interface_xml org.kde.kpmcore.helperinterface.xml)
  3. qt5_generate_dbus_interface(
  4. util/externalcommand.h
  5. ${application_interface_xml}
  6. OPTIONS -a
  7. )
  8. qt5_generate_dbus_interface(
  9. util/externalcommandhelper.h
  10. ${helper_interface_xml}
  11. OPTIONS -a
  12. )
  13. qt5_add_dbus_interface(ApplicationInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${application_interface_xml} externalcommand_interface)
  14. qt5_add_dbus_interface(HelperInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${helper_interface_xml} externalcommandhelper_interface)
  15. set(UTIL_SRC
  16. ${HelperInterface_SRCS}
  17. util/capacity.cpp
  18. util/externalcommand.cpp
  19. util/globallog.cpp
  20. util/helpers.cpp
  21. util/htmlreport.cpp
  22. util/report.cpp
  23. )
  24. set(UTIL_LIB_HDRS
  25. util/libpartitionmanagerexport.h
  26. util/capacity.h
  27. util/externalcommand.h
  28. util/globallog.h
  29. util/helpers.h
  30. util/htmlreport.h
  31. util/report.h
  32. )
  33. add_executable(kpmcore_externalcommand
  34. ${ApplicationInterface_SRCS}
  35. util/externalcommandhelper.cpp
  36. )
  37. target_link_libraries(kpmcore_externalcommand
  38. qca-qt5
  39. Qt5::Core
  40. Qt5::DBus
  41. KF5::AuthCore
  42. KF5::I18n
  43. )
  44. install(TARGETS kpmcore_externalcommand DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
  45. install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
  46. install( FILES util/org.kde.kpmcore.applicationinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
  47. kauth_install_helper_files(kpmcore_externalcommand org.kde.kpmcore.externalcommand root)
  48. kauth_install_actions(org.kde.kpmcore.externalcommand util/org.kde.kpmcore.externalcommand.actions)