2014-06-14 14:22:40 +01:00
|
|
|
project(KDEConnectCore)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${QJSON_INCLUDE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2014-06-14 15:34:00 +01:00
|
|
|
${QCA2_INCLUDE_DIR}
|
2014-06-14 14:22:40 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(backends/lan)
|
|
|
|
add_subdirectory(backends/loopback)
|
|
|
|
|
|
|
|
set(kded_kdeconnect_SRCS
|
|
|
|
${kded_kdeconnect_SRCS}
|
|
|
|
|
|
|
|
backends/linkprovider.cpp
|
|
|
|
backends/devicelink.cpp
|
|
|
|
|
2014-06-14 15:34:00 +01:00
|
|
|
kdeconnectplugin.cpp
|
|
|
|
pluginloader.cpp
|
2014-06-14 14:22:40 +01:00
|
|
|
|
|
|
|
networkpackage.cpp
|
|
|
|
filetransferjob.cpp
|
|
|
|
daemon.cpp
|
|
|
|
device.cpp
|
|
|
|
kdebugnamespace.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
kde4_add_library(kdeconnectcore SHARED ${kded_kdeconnect_SRCS})
|
|
|
|
target_link_libraries(kdeconnectcore
|
|
|
|
PUBLIC
|
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
|
|
|
|
PRIVATE
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${QJSON_LIBRARIES}
|
|
|
|
${QT_QTNETWORK_LIBRARY}
|
|
|
|
${QCA2_LIBRARIES}
|
|
|
|
)
|
2014-06-14 15:34:00 +01:00
|
|
|
target_include_directories(kdeconnectcore PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
2014-06-14 14:22:40 +01:00
|
|
|
generate_export_header(kdeconnectcore EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectcore_export.h BASE_NAME KDEConnectCore)
|
|
|
|
|
2014-06-14 15:34:00 +01:00
|
|
|
include(macros)
|
2014-06-14 14:22:40 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|