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-14 14:22:40 +01:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(backends/lan)
|
|
|
|
add_subdirectory(backends/loopback)
|
|
|
|
|
2015-04-09 11:52:56 +01:00
|
|
|
find_package(KF5Notifications 5.9 REQUIRED)
|
2015-03-10 04:59:36 +00:00
|
|
|
|
|
|
|
set(kdeconnectcore_SRCS
|
2015-02-24 06:14:22 +00:00
|
|
|
${backends_kdeconnect_SRCS}
|
2014-06-14 14:22:40 +01:00
|
|
|
|
|
|
|
backends/linkprovider.cpp
|
|
|
|
backends/devicelink.cpp
|
2015-07-05 14:23:53 +01:00
|
|
|
backends/pairinghandler.cpp
|
2014-06-14 14:22:40 +01:00
|
|
|
|
2014-06-14 15:34:00 +01:00
|
|
|
kdeconnectplugin.cpp
|
2015-03-14 04:19:39 +00:00
|
|
|
kdeconnectpluginconfig.cpp
|
2014-06-14 15:34:00 +01:00
|
|
|
pluginloader.cpp
|
2014-06-14 14:22:40 +01:00
|
|
|
|
2015-03-02 04:16:07 +00:00
|
|
|
kdeconnectconfig.cpp
|
2014-10-10 19:26:50 +01:00
|
|
|
dbushelper.cpp
|
2014-06-14 14:22:40 +01:00
|
|
|
networkpackage.cpp
|
|
|
|
filetransferjob.cpp
|
|
|
|
daemon.cpp
|
|
|
|
device.cpp
|
|
|
|
)
|
|
|
|
|
2015-04-10 16:48:48 +01:00
|
|
|
add_library(kdeconnectcore ${kdeconnectcore_SRCS})
|
2014-06-14 14:22:40 +01:00
|
|
|
target_link_libraries(kdeconnectcore
|
|
|
|
PUBLIC
|
2014-09-22 01:37:10 +01:00
|
|
|
Qt5::Network
|
2015-05-04 23:41:39 +01:00
|
|
|
KF5::CoreAddons
|
2015-01-16 05:35:30 +00:00
|
|
|
qca-qt5
|
2014-06-14 14:22:40 +01:00
|
|
|
PRIVATE
|
2014-09-22 01:37:10 +01:00
|
|
|
Qt5::DBus
|
|
|
|
Qt5::Gui
|
|
|
|
KF5::I18n
|
|
|
|
KF5::ConfigCore
|
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})
|
2015-09-10 14:51:38 +01:00
|
|
|
generate_export_header(kdeconnectcore EXPORT_FILE_NAME kdeconnectcore_export.h BASE_NAME KDEConnectCore)
|
2014-06-14 14:22:40 +01:00
|
|
|
|
2015-03-12 11:42:10 +00:00
|
|
|
install(TARGETS kdeconnectcore EXPORT kdeconnectLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
|