11996f56ca
Use QNetworkAccessManager for storing the files we receive instead of directly KIO, then provide the KIO-based QNetworkAccessManager from the daemon. This way we'll still get the KIO network-transparency, but the library only depenends on QtNetwork, which will be easier to get in some platforms. After this change, we only depend on KConfig, KI18n and KCoreAddons, which are tier1 and really easy to work with on any platform. REVIEW: 123325
15 lines
772 B
CMake
15 lines
772 B
CMake
project(kdeconnectd)
|
|
|
|
find_package(KF5 REQUIRED COMPONENTS Notifications KIO)
|
|
|
|
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kded")
|
|
|
|
add_executable(kdeconnectd kdeconnectd.cpp)
|
|
target_link_libraries(kdeconnectd kdeconnectcore KF5::KIOWidgets KF5::DBusAddons KF5::Notifications KF5::I18n Qt5::Widgets)
|
|
|
|
configure_file(kdeconnectd.desktop.cmake ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop)
|
|
configure_file(org.kde.kdeconnect.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service)
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectd.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.kdeconnect.service DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
|
|
install(TARGETS kdeconnectd DESTINATION ${LIBEXEC_INSTALL_DIR})
|