40 lines
1014 B
CMake
40 lines
1014 B
CMake
set(UTIL_SRC
|
|
util/capacity.cpp
|
|
util/externalcommand.cpp
|
|
util/globallog.cpp
|
|
util/helpers.cpp
|
|
util/htmlreport.cpp
|
|
util/report.cpp
|
|
)
|
|
|
|
set(UTIL_LIB_HDRS
|
|
util/libpartitionmanagerexport.h
|
|
util/capacity.h
|
|
util/externalcommand.h
|
|
util/globallog.h
|
|
util/helpers.h
|
|
util/htmlreport.h
|
|
util/report.h
|
|
)
|
|
|
|
qt5_generate_dbus_interface(
|
|
externalcommand_interface.h
|
|
org.kde.kpmcore.externalcommand.xml
|
|
)
|
|
|
|
add_executable(kpmcore_externalcommand util/externalcommandhelper.cpp)
|
|
|
|
target_link_libraries(kpmcore_externalcommand
|
|
qca-qt5
|
|
Qt5::Core
|
|
Qt5::DBus
|
|
KF5::Auth
|
|
KF5::I18n
|
|
)
|
|
|
|
install(TARGETS kpmcore_externalcommand DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
|
|
install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d )
|
|
|
|
kauth_install_helper_files(kpmcore_externalcommand org.kde.kpmcore.externalcommand root)
|
|
kauth_install_actions(org.kde.kpmcore.externalcommand util/org.kde.kpmcore.externalcommand.actions)
|