2014-06-14 14:22:40 +01:00
|
|
|
project(KDEConnectCore)
|
|
|
|
|
2014-06-18 01:49:07 +01:00
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
|
|
|
|
|
2014-06-30 00:12:24 +01:00
|
|
|
set(KDECONNECT_VERSION_MAJOR 1)
|
|
|
|
set(KDECONNECT_VERSION_MINOR 0)
|
|
|
|
set(KDECONNECT_VERSION_PATCH 1)
|
|
|
|
set(KDECONNECT_VERSION "${KDECONNECT_VERSION_MAJOR}.${KDECONNECT_VERSION_MINOR}.${KDECONNECT_VERSION_PATCH}")
|
|
|
|
|
2014-06-14 14:22:40 +01:00
|
|
|
include_directories(
|
|
|
|
${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
|
|
|
|
)
|
|
|
|
|
2014-06-16 19:02:07 +01:00
|
|
|
add_library(kdeconnectcore SHARED ${kded_kdeconnect_SRCS})
|
2014-06-14 14:22:40 +01:00
|
|
|
target_link_libraries(kdeconnectcore
|
|
|
|
PUBLIC
|
2014-09-22 01:37:10 +01:00
|
|
|
Qt5::Network
|
2014-06-14 14:22:40 +01:00
|
|
|
PRIVATE
|
2014-07-02 00:39:38 +01:00
|
|
|
${QCA2_LIBRARIES}
|
2014-09-22 01:37:10 +01:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Gui
|
2014-06-16 19:02:07 +01:00
|
|
|
KF5::KIOWidgets
|
|
|
|
KF5::KCMUtils
|
2014-09-22 01:37:10 +01:00
|
|
|
KF5::I18n
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::Notifications
|
2014-06-14 14:22:40 +01:00
|
|
|
)
|
2014-07-01 22:59:38 +01:00
|
|
|
|
2014-06-30 00:12:24 +01:00
|
|
|
set_target_properties(kdeconnectcore PROPERTIES
|
|
|
|
VERSION ${KDECONNECT_VERSION}
|
|
|
|
SOVERSION ${KDECONNECT_VERSION_MAJOR}
|
|
|
|
)
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2014-06-14 17:04:54 +01:00
|
|
|
install(TARGETS kdeconnectcore EXPORT kdeconnectLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|