2015-04-04 18:10:19 +01:00
|
|
|
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
|
2015-02-24 06:12:45 +00:00
|
|
|
|
2020-05-26 17:55:47 +01:00
|
|
|
set(debug_file_SRCS)
|
|
|
|
ecm_qt_declare_logging_category(
|
|
|
|
debug_file_SRCS HEADER kdeconnectd_debug.h
|
|
|
|
IDENTIFIER KDECONNECT_DAEMON CATEGORY_NAME kdeconnect.daemon
|
|
|
|
DEFAULT_SEVERITY Warning
|
|
|
|
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (daemon)")
|
|
|
|
|
2021-06-13 01:00:15 +01:00
|
|
|
qt5_add_resources(kdeconnect_custom_icons_SRCS ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
|
|
|
|
|
|
|
|
add_executable(kdeconnectd kdeconnectd.cpp ${kdeconnect_custom_icons_SRCS} ${debug_file_SRCS})
|
2020-10-24 18:12:28 +01:00
|
|
|
target_link_libraries(kdeconnectd
|
|
|
|
kdeconnectcore kdeconnectversion
|
|
|
|
KF5::KIOWidgets
|
|
|
|
KF5::DBusAddons
|
|
|
|
KF5::Notifications
|
|
|
|
KF5::I18n
|
2022-05-12 02:59:56 +01:00
|
|
|
KF5::WindowSystem
|
2020-10-24 18:12:28 +01:00
|
|
|
Qt5::Widgets)
|
2015-02-24 06:12:45 +00:00
|
|
|
|
2015-09-10 14:51:38 +01:00
|
|
|
ecm_mark_nongui_executable(kdeconnectd)
|
|
|
|
|
2019-05-10 23:38:41 +01:00
|
|
|
configure_file(org.kde.kdeconnect.daemon.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop)
|
2020-11-09 20:28:47 +00:00
|
|
|
|
|
|
|
# Conditionally configure the daemon service according to the target OS
|
|
|
|
if(WIN32)
|
|
|
|
set(SERV_EXEC kdeconnectd)
|
|
|
|
else()
|
|
|
|
set(SERV_EXEC ${KDE_INSTALL_FULL_LIBEXECDIR}/kdeconnectd)
|
|
|
|
endif()
|
2015-02-24 06:12:45 +00:00
|
|
|
configure_file(org.kde.kdeconnect.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service)
|
|
|
|
|
2022-04-20 23:50:14 +01:00
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop DESTINATION ${KDE_INSTALL_AUTOSTARTDIR})
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.daemon.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR})
|
|
|
|
install(TARGETS kdeconnectd DESTINATION ${KDE_INSTALL_LIBEXECDIR})
|
2014-11-30 01:52:43 +00:00
|
|
|
|