kdeconnect-kde/daemon/CMakeLists.txt

33 lines
1.3 KiB
CMake
Raw Permalink Normal View History

add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
2024-09-12 23:44:38 +01:00
add_executable(kdeconnectd kdeconnectd.cpp desktop_daemon.cpp ${CMAKE_SOURCE_DIR}/icons/custom_icons.qrc)
ecm_qt_declare_logging_category(kdeconnectd
HEADER kdeconnectd_debug.h
IDENTIFIER KDECONNECT_DAEMON CATEGORY_NAME kdeconnect.daemon
DEFAULT_SEVERITY Warning
EXPORT kdeconnect-kde DESCRIPTION "kdeconnect (daemon)")
target_link_libraries(kdeconnectd
kdeconnectcore kdeconnectversion
KF6::KIOWidgets
KF6::DBusAddons
KF6::Notifications
KF6::I18n
KF6::WindowSystem
2024-07-31 21:44:55 +01:00
KF6::Crash
Qt::Widgets)
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)
if (UNIX AND NOT APPLE)
set(kdeconnectd_prefix "${KDE_INSTALL_FULL_BINDIR}/")
endif()
configure_file(org.kde.kdeconnect.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service)
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})
2024-03-06 22:18:05 +00:00
install(TARGETS kdeconnectd ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})