2014-06-14 13:31:31 +01:00
|
|
|
project(KDEConnectCore)
|
2013-09-01 21:13:03 +01:00
|
|
|
|
2013-08-31 12:04:00 +01:00
|
|
|
include_directories(
|
2013-09-09 17:35:56 +01:00
|
|
|
${KDE4_KIO_LIBS}
|
2013-08-31 12:04:00 +01:00
|
|
|
${QJSON_INCLUDE_DIR}
|
|
|
|
${QCA2_INCLUDE_DIR}
|
2014-06-14 13:31:31 +01:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2013-08-31 12:04:00 +01:00
|
|
|
)
|
|
|
|
|
2014-06-14 13:31:31 +01:00
|
|
|
add_subdirectory(plugins)
|
|
|
|
|
2013-09-09 17:35:56 +01:00
|
|
|
add_subdirectory(backends/lan)
|
|
|
|
add_subdirectory(backends/loopback)
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-09-09 17:35:56 +01:00
|
|
|
set(kded_kdeconnect_SRCS
|
|
|
|
${kded_kdeconnect_SRCS}
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-09-09 17:35:56 +01:00
|
|
|
backends/linkprovider.cpp
|
|
|
|
backends/devicelink.cpp
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-08-13 04:14:46 +01:00
|
|
|
plugins/kdeconnectplugin.cpp
|
2013-08-12 15:09:52 +01:00
|
|
|
plugins/pluginloader.cpp
|
2013-06-19 12:29:24 +01:00
|
|
|
|
2013-06-17 11:23:08 +01:00
|
|
|
networkpackage.cpp
|
2013-09-24 13:10:25 +01:00
|
|
|
filetransferjob.cpp
|
2013-06-17 11:23:08 +01:00
|
|
|
daemon.cpp
|
2013-06-25 17:08:34 +01:00
|
|
|
device.cpp
|
2013-11-06 21:16:55 +00:00
|
|
|
kdebugnamespace.cpp
|
2013-06-06 04:57:06 +01:00
|
|
|
)
|
|
|
|
|
2014-06-14 13:31:31 +01:00
|
|
|
kde4_add_library(kdeconnectcore SHARED ${kded_kdeconnect_SRCS})
|
|
|
|
target_link_libraries(kdeconnectcore
|
|
|
|
PUBLIC
|
2014-01-17 13:55:04 +00:00
|
|
|
${KDE4_KDECORE_LIBS}
|
2014-06-14 13:31:31 +01:00
|
|
|
|
|
|
|
PRIVATE
|
2014-01-17 13:55:04 +00:00
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${QJSON_LIBRARIES}
|
2014-06-14 13:31:31 +01:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
2014-01-17 13:55:04 +00:00
|
|
|
${QCA2_LIBRARIES}
|
|
|
|
)
|
2014-06-14 13:31:31 +01:00
|
|
|
generate_export_header(kdeconnectcore EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/kdeconnectcore_export.h BASE_NAME KDEConnectCore)
|
|
|
|
|
|
|
|
kde4_add_executable(kdeconnectd kdeconnectd.cpp)
|
|
|
|
target_link_libraries(kdeconnectd kdeconnectcore ${KDE4_KDEUI_LIBS})
|
2014-01-17 13:55:04 +00:00
|
|
|
|
2014-06-14 12:04:21 +01:00
|
|
|
kde4_add_plugin(kded_kdeconnect kded.cpp)
|
2013-06-06 04:57:06 +01:00
|
|
|
|
2013-07-02 00:50:32 +01:00
|
|
|
target_link_libraries(kded_kdeconnect
|
2013-06-06 04:57:06 +01:00
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
)
|
|
|
|
|
2013-09-02 13:47:37 +01:00
|
|
|
include(../macros.cmake)
|
2013-07-26 15:21:19 +01:00
|
|
|
|
|
|
|
generate_and_install_dbus_interface(
|
2014-01-17 13:55:04 +00:00
|
|
|
kdeconnectd
|
2013-06-25 17:08:34 +01:00
|
|
|
daemon.h
|
2013-07-28 21:00:45 +01:00
|
|
|
org.kde.kdeconnect.daemon.xml
|
2013-06-25 17:08:34 +01:00
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
2013-07-26 15:21:19 +01:00
|
|
|
generate_and_install_dbus_interface(
|
2014-01-17 13:55:04 +00:00
|
|
|
kdeconnectd
|
2013-07-03 02:52:44 +01:00
|
|
|
device.h
|
|
|
|
org.kde.kdeconnect.device.xml
|
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
2014-01-17 13:55:04 +00:00
|
|
|
generate_and_install_dbus_interface(
|
|
|
|
kded_kdeconnect
|
|
|
|
kded.h
|
2014-01-17 22:06:47 +00:00
|
|
|
org.kde.kded.kdeconnect.xml
|
2014-01-17 13:55:04 +00:00
|
|
|
OPTIONS -a
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS kdeconnectd DESTINATION ${LIBEXEC_INSTALL_DIR})
|
2013-07-02 00:50:32 +01:00
|
|
|
install(TARGETS kded_kdeconnect DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES kdeconnect.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded)
|
|
|
|
install(FILES kdeconnect.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kdeconnect)
|