2018-08-05 21:14:43 +01:00
|
|
|
set(application_interface_xml org.kde.kpmcore.applicationinterface.xml)
|
|
|
|
set(helper_interface_xml org.kde.kpmcore.helperinterface.xml)
|
|
|
|
|
|
|
|
qt5_generate_dbus_interface(
|
|
|
|
util/externalcommand.h
|
|
|
|
${application_interface_xml}
|
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_generate_dbus_interface(
|
|
|
|
util/externalcommandhelper.h
|
|
|
|
${helper_interface_xml}
|
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_add_dbus_interface(ApplicationInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${application_interface_xml} externalcommand_interface)
|
|
|
|
qt5_add_dbus_interface(HelperInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${helper_interface_xml} externalcommandhelper_interface)
|
|
|
|
|
2015-06-04 01:29:22 +01:00
|
|
|
set(UTIL_SRC
|
2018-08-05 21:14:43 +01:00
|
|
|
${HelperInterface_SRCS}
|
2015-07-02 14:21:46 +01:00
|
|
|
util/capacity.cpp
|
|
|
|
util/externalcommand.cpp
|
|
|
|
util/globallog.cpp
|
|
|
|
util/helpers.cpp
|
|
|
|
util/htmlreport.cpp
|
|
|
|
util/report.cpp
|
2015-06-04 01:29:22 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(UTIL_LIB_HDRS
|
2015-07-02 14:21:46 +01:00
|
|
|
util/libpartitionmanagerexport.h
|
|
|
|
util/capacity.h
|
|
|
|
util/externalcommand.h
|
|
|
|
util/globallog.h
|
|
|
|
util/helpers.h
|
|
|
|
util/htmlreport.h
|
|
|
|
util/report.h
|
2015-06-04 01:29:22 +01:00
|
|
|
)
|
2017-11-07 22:55:28 +00:00
|
|
|
|
2018-08-05 21:14:43 +01:00
|
|
|
add_executable(kpmcore_externalcommand
|
2018-08-08 14:35:30 +01:00
|
|
|
${ApplicationInterface_SRCS}
|
2018-08-05 21:14:43 +01:00
|
|
|
util/externalcommandhelper.cpp
|
2018-03-19 10:33:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(kpmcore_externalcommand
|
2018-04-12 22:43:12 +01:00
|
|
|
qca-qt5
|
2018-03-19 10:33:20 +00:00
|
|
|
Qt5::Core
|
|
|
|
Qt5::DBus
|
2019-02-15 23:24:15 +00:00
|
|
|
KF5::AuthCore
|
2018-03-19 10:33:20 +00:00
|
|
|
KF5::I18n
|
|
|
|
)
|
|
|
|
|
2017-11-07 22:55:28 +00:00
|
|
|
install(TARGETS kpmcore_externalcommand DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
2019-05-12 21:32:58 +01:00
|
|
|
install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
|
|
|
|
install( FILES util/org.kde.kpmcore.applicationinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
|
2017-11-07 22:55:28 +00:00
|
|
|
|
|
|
|
kauth_install_helper_files(kpmcore_externalcommand org.kde.kpmcore.externalcommand root)
|
|
|
|
kauth_install_actions(org.kde.kpmcore.externalcommand util/org.kde.kpmcore.externalcommand.actions)
|