Changeset View
Changeset View
Standalone View
Standalone View
src/util/CMakeLists.txt
Show All 13 Lines | |||||
14 | ) | 14 | ) | ||
15 | 15 | | |||
16 | qt5_add_dbus_interface(ApplicationInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${application_interface_xml} externalcommand_interface) | 16 | qt5_add_dbus_interface(ApplicationInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${application_interface_xml} externalcommand_interface) | ||
17 | qt5_add_dbus_interface(HelperInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${helper_interface_xml} externalcommandhelper_interface) | 17 | qt5_add_dbus_interface(HelperInterface_SRCS ${CMAKE_CURRENT_BINARY_DIR}/${helper_interface_xml} externalcommandhelper_interface) | ||
18 | 18 | | |||
19 | set(UTIL_SRC | 19 | set(UTIL_SRC | ||
20 | ${HelperInterface_SRCS} | 20 | ${HelperInterface_SRCS} | ||
21 | util/capacity.cpp | 21 | util/capacity.cpp | ||
22 | util/externalcommand_authagent.cpp | ||||
22 | util/externalcommand.cpp | 23 | util/externalcommand.cpp | ||
23 | util/globallog.cpp | 24 | util/globallog.cpp | ||
24 | util/helpers.cpp | 25 | util/helpers.cpp | ||
25 | util/htmlreport.cpp | 26 | util/htmlreport.cpp | ||
26 | util/report.cpp | 27 | util/report.cpp | ||
27 | ) | 28 | ) | ||
28 | 29 | | |||
29 | set(UTIL_LIB_HDRS | 30 | set(UTIL_LIB_HDRS | ||
30 | util/libpartitionmanagerexport.h | 31 | util/libpartitionmanagerexport.h | ||
31 | util/capacity.h | 32 | util/capacity.h | ||
33 | util/externalcommand_authagent.h | ||||
32 | util/externalcommand.h | 34 | util/externalcommand.h | ||
33 | util/globallog.h | 35 | util/globallog.h | ||
34 | util/helpers.h | 36 | util/helpers.h | ||
35 | util/htmlreport.h | 37 | util/htmlreport.h | ||
36 | util/report.h | 38 | util/report.h | ||
37 | ) | 39 | ) | ||
38 | 40 | | |||
39 | add_executable(kpmcore_externalcommand | 41 | add_executable(kpmcore_externalcommand | ||
40 | ${ApplicationInterface_SRCS} | 42 | ${ApplicationInterface_SRCS} | ||
41 | util/externalcommandhelper.cpp | 43 | util/externalcommandhelper.cpp | ||
42 | ) | 44 | ) | ||
43 | 45 | | |||
44 | target_link_libraries(kpmcore_externalcommand | 46 | target_link_libraries(kpmcore_externalcommand | ||
45 | qca-qt5 | 47 | qca-qt5 | ||
48 | ${POLKITQT-1_LIBRARIES} | ||||
46 | Qt5::Core | 49 | Qt5::Core | ||
47 | Qt5::DBus | 50 | Qt5::DBus | ||
48 | KF5::AuthCore | 51 | KF5::AuthCore | ||
49 | KF5::I18n | 52 | KF5::I18n | ||
50 | ) | 53 | ) | ||
51 | 54 | | |||
52 | install(TARGETS kpmcore_externalcommand DESTINATION ${KAUTH_HELPER_INSTALL_DIR}) | 55 | install(TARGETS kpmcore_externalcommand DESTINATION ${KAUTH_HELPER_INSTALL_DIR}) | ||
53 | install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d ) | 56 | install( FILES util/org.kde.kpmcore.helperinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d ) | ||
54 | install( FILES util/org.kde.kpmcore.applicationinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d ) | 57 | install( FILES util/org.kde.kpmcore.applicationinterface.conf DESTINATION ${KDE_INSTALL_DBUSDIR}/system.d ) | ||
55 | 58 | | |||
56 | kauth_install_helper_files(kpmcore_externalcommand org.kde.kpmcore.externalcommand root) | 59 | kauth_install_helper_files(kpmcore_externalcommand org.kde.kpmcore.externalcommand root) | ||
57 | kauth_install_actions(org.kde.kpmcore.externalcommand util/org.kde.kpmcore.externalcommand.actions) | 60 | kauth_install_actions(org.kde.kpmcore.externalcommand util/org.kde.kpmcore.externalcommand.actions) |