# SPDX-FileCopyrightText: 2008,2012 Volker Lanz # SPDX-FileCopyrightText: 2015 Chris Campbell # SPDX-FileCopyrightText: 2015 Teo Mrnjavac # SPDX-FileCopyrightText: 2015-2020 Andrius Štikonas # SPDX-FileCopyrightText: 2018 Huzaifa Faruqui # SPDX-FileCopyrightText: 2019 Albert Astals Cid # SPDX-FileCopyrightText: 2019 Antonio Rojas # SPDX-FileCopyrightText: 2020 David Edmundson # SPDX-License-Identifier: GPL-3.0-or-later 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) set(UTIL_SRC ${HelperInterface_SRCS} util/capacity.cpp util/externalcommand.cpp util/globallog.cpp util/helpers.cpp util/htmlreport.cpp util/report.cpp ) set(UTIL_LIB_HDRS util/capacity.h util/externalcommand.h util/globallog.h util/helpers.h util/htmlreport.h util/report.h ) add_executable(kpmcore_externalcommand util/externalcommandhelper.cpp ) target_link_libraries(kpmcore_externalcommand Qt5::Core Qt5::DBus KF5::I18n PolkitQt5-1::Core ) install(TARGETS kpmcore_externalcommand DESTINATION ${KDE_INSTALL_LIBEXECDIR}) install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d ) install( FILES util/org.kde.kpmcore.externalcommand.policy DESTINATION ${POLKITQT-1_POLICY_FILES_INSTALL_DIR}) ecm_install_configured_files( INPUT util/org.kde.kpmcore.helperinterface.service.in DESTINATION ${KDE_INSTALL_DBUSDIR}/system-services )