kdeconnect-kde/plugins/share/CMakeLists.txt
Aleix Pol c7cee37330 Port away from KServiceTrader
Uses KPluginLoader+KPluginMetadata instead.
Describes plugins in json instead of desktop files. These desktop files are
then embedded into the .so file. All the plugins will be in a kdeconnect/
directory, and those will be the ones to look for.

Note it doesn't drop the KService dependency as KIOCore is a KDE Connect
dependency as well.

REVIEW: 123042
2015-03-19 16:36:53 +01:00

33 lines
878 B
CMake

set(kdeconnect_share_SRCS
shareplugin.cpp
autoclosingqfile.cpp
)
kdeconnect_add_plugin(kdeconnect_share JSON kdeconnect_share.json SOURCES ${kdeconnect_share_SRCS})
target_link_libraries(kdeconnect_share
kdeconnectcore
Qt5::DBus
KF5::Service
KF5::Notifications
KF5::I18n
KF5::KIOWidgets
)
#######################################
# Config
set( kdeconnect_share_config_SRCS share_config.cpp )
ki18n_wrap_ui( kdeconnect_share_config_SRCS share_config.ui )
add_library(kdeconnect_share_config MODULE ${kdeconnect_share_config_SRCS} )
target_link_libraries( kdeconnect_share_config
kdeconnectpluginkcm
KF5::I18n
KF5::CoreAddons
KF5::ConfigWidgets
KF5::KIOWidgets
)
install(TARGETS kdeconnect_share_config DESTINATION ${PLUGIN_INSTALL_DIR} )
install(FILES kdeconnect_share_config.desktop DESTINATION ${SERVICES_INSTALL_DIR} )