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
69 lines
1.5 KiB
CMake
69 lines
1.5 KiB
CMake
project(KDEConnectCore)
|
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
add_subdirectory(backends/lan)
|
|
add_subdirectory(backends/loopback)
|
|
|
|
find_package(KF5Notifications 5.9 REQUIRED)
|
|
|
|
set(kdeconnectcore_SRCS
|
|
${backends_kdeconnect_SRCS}
|
|
|
|
backends/linkprovider.cpp
|
|
backends/devicelink.cpp
|
|
|
|
kdeconnectplugin.cpp
|
|
kdeconnectpluginconfig.cpp
|
|
pluginloader.cpp
|
|
|
|
kdeconnectconfig.cpp
|
|
dbushelper.cpp
|
|
networkpackage.cpp
|
|
filetransferjob.cpp
|
|
daemon.cpp
|
|
device.cpp
|
|
)
|
|
|
|
add_library(kdeconnectcore ${kdeconnectcore_SRCS})
|
|
target_link_libraries(kdeconnectcore
|
|
PUBLIC
|
|
Qt5::Network
|
|
KF5::CoreAddons
|
|
qca-qt5
|
|
PRIVATE
|
|
Qt5::DBus
|
|
Qt5::Gui
|
|
KF5::I18n
|
|
KF5::ConfigCore
|
|
)
|
|
|
|
set_target_properties(kdeconnectcore PROPERTIES
|
|
VERSION ${KDECONNECT_VERSION}
|
|
SOVERSION ${KDECONNECT_VERSION_MAJOR}
|
|
)
|
|
|
|
target_include_directories(kdeconnectcore PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
|
generate_export_header(kdeconnectcore EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectcore_export.h BASE_NAME KDEConnectCore)
|
|
|
|
include(DbusInterfaceMacros)
|
|
|
|
generate_and_install_dbus_interface(
|
|
kdeconnectcore
|
|
../core/daemon.h
|
|
org.kde.kdeconnect.daemon.xml
|
|
OPTIONS -a
|
|
)
|
|
|
|
generate_and_install_dbus_interface(
|
|
kdeconnectcore
|
|
../core/device.h
|
|
org.kde.kdeconnect.device.xml
|
|
OPTIONS -a
|
|
)
|
|
|
|
install(TARGETS kdeconnectcore EXPORT kdeconnectLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
|