2020-09-17 02:15:16 +01:00
|
|
|
# SPDX-FileCopyrightText: 2008,2012 Volker Lanz <vl@fidra.de>
|
|
|
|
# SPDX-FileCopyrightText: 2015 Chris Campbell <c.j.campbell@ed.ac.uk>
|
|
|
|
# SPDX-FileCopyrightText: 2015 Teo Mrnjavac <teo@kde.org>
|
2020-10-25 23:45:28 +00:00
|
|
|
# SPDX-FileCopyrightText: 2015-2020 Andrius Štikonas <andrius@stikonas.eu>
|
2020-09-17 02:15:16 +01:00
|
|
|
# SPDX-FileCopyrightText: 2018 Huzaifa Faruqui <huzaifafaruqui@gmail.com>
|
|
|
|
# SPDX-FileCopyrightText: 2019 Albert Astals Cid <aacid@kde.org>
|
|
|
|
# SPDX-FileCopyrightText: 2019 Antonio Rojas <arojas@archlinux.org>
|
2020-10-09 20:41:41 +01:00
|
|
|
# SPDX-FileCopyrightText: 2020 David Edmundson <kde@davidedmundson.co.uk>
|
2020-09-17 02:15:16 +01:00
|
|
|
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2018-08-05 21:14:43 +01:00
|
|
|
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(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/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
|
|
|
|
util/externalcommandhelper.cpp
|
2018-03-19 10:33:20 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(kpmcore_externalcommand
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::DBus
|
|
|
|
KF5::I18n
|
2020-10-08 02:23:24 +01:00
|
|
|
PolkitQt5-1::Core
|
2018-03-19 10:33:20 +00:00
|
|
|
)
|
|
|
|
|
2020-10-08 02:23:24 +01:00
|
|
|
install(TARGETS kpmcore_externalcommand DESTINATION ${KDE_INSTALL_LIBEXECDIR})
|
2019-05-12 21:32:58 +01:00
|
|
|
install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d )
|
2017-11-07 22:55:28 +00:00
|
|
|
|
2020-10-25 23:45:28 +00:00
|
|
|
install( FILES util/org.kde.kpmcore.externalcommand.policy DESTINATION ${POLKITQT-1_POLICY_FILES_INSTALL_DIR})
|
2020-10-08 02:23:24 +01:00
|
|
|
ecm_install_configured_files(
|
|
|
|
INPUT util/org.kde.kpmcore.helperinterface.service.in
|
|
|
|
DESTINATION ${KDE_INSTALL_DBUSDIR}/system-services
|
|
|
|
)
|