2014-06-14 14:22:40 +01:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR})
|
2014-06-14 13:31:31 +01:00
|
|
|
|
2014-09-08 02:09:18 +01:00
|
|
|
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
|
2014-06-14 13:31:31 +01:00
|
|
|
|
2014-07-05 12:28:42 +01:00
|
|
|
configure_file(config-kded.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-kded.h)
|
2014-06-17 21:21:31 +01:00
|
|
|
|
2014-11-22 17:29:05 +00:00
|
|
|
add_executable(kdeconnectd kdeconnectd.cpp)
|
|
|
|
target_link_libraries(kdeconnectd kdeconnectcore KF5::DBusAddons KF5::ConfigWidgets)
|
2014-12-09 21:07:22 +00:00
|
|
|
|
|
|
|
set(NEW_DAEMON_STARTUP_DESC "WIP: Start kdeconnectd without kded")
|
|
|
|
option(WITH_AUTOSTART NEW_DAEMON_STARTUP_DESC Off)
|
|
|
|
add_feature_info(WITH_AUTOSTART WITH_AUTOSTART NEW_DAEMON_STARTUP_DESC)
|
|
|
|
|
|
|
|
if (NOT WITH_AUTOSTART)
|
|
|
|
add_library(kded_kdeconnect MODULE kded.cpp)
|
|
|
|
target_link_libraries(kded_kdeconnect KF5::Service KF5::DBusAddons)
|
|
|
|
install(TARGETS kded_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
|
|
|
|
else()
|
|
|
|
configure_file(kdeconnectd.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
|
|
|
|
endif()
|
|
|
|
|
2014-11-22 17:29:05 +00:00
|
|
|
install(TARGETS kdeconnectd DESTINATION ${LIBEXEC_INSTALL_DIR})
|
|
|
|
|
2014-12-09 21:27:16 +00:00
|
|
|
configure_file(org.kde.kdeconnect.service.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service)
|
|
|
|
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service
|
|
|
|
DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
|