kde-extraapps/akregator/plugins/onlinesync/CMakeLists.txt
2015-06-04 18:14:56 +00:00

67 lines
1.9 KiB
CMake

include_directories(
${CMAKE_SOURCE_DIR}/akregator/interfaces
${CMAKE_SOURCE_DIR}/akregator/src
${CMAKE_SOURCE_DIR}
${KDE4_INCLUDE_DIR}
${QT_INCLUDES}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
########### next target ###############
set(kcm_akronlinesyncconfig_SRCS
akregator_config_onlinesync.cpp
ui/configurationdialog.cpp
ui/configurationwidget.cpp
ui/configurationdialogadd.cpp
)
kde4_add_kcfg_files(kcm_akronlinesyncconfig_SRCS onlinesyncsettings.kcfgc)
kde4_add_ui_files(kcm_akronlinesyncconfig_SRCS ui/configurationwidget.ui)
kde4_add_ui_files(kcm_akronlinesyncconfig_SRCS ui/configurationdialogadd.ui)
kde4_add_plugin(akregator_config_onlinesync ${kcm_akronlinesyncconfig_SRCS})
target_link_libraries(akregator_config_onlinesync
akregatorinterfaces
${KDE4_KIO_LIBS}
${KDE4_KPARTS_LIBS}
)
install(FILES akregator_config_onlinesync.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS akregator_config_onlinesync DESTINATION ${PLUGIN_INSTALL_DIR})
########### next target ###############
set(akregator_onlinesync_plugin_SRCS
sync/feedsync.cpp
sync/subscriptionlist.cpp
sync/akregator.cpp
sync/googlereader.cpp
sync/opml.cpp
ui/configurationdialog.cpp
ui/configurationwidget.cpp
ui/configurationdialogadd.cpp
onlinesyncplugin.cpp
)
kde4_add_ui_files(akregator_onlinesync_plugin_SRCS
ui/configurationwidget.ui
ui/configurationdialogadd.ui
)
kde4_add_kcfg_files(akregator_onlinesync_plugin_SRCS onlinesyncsettings.kcfgc)
kde4_add_plugin(akregator_onlinesync_plugin ${akregator_onlinesync_plugin_SRCS})
target_link_libraries(akregator_onlinesync_plugin
akregatorinterfaces
${KDE4_KIO_LIBS}
${KDE4_KPARTS_LIBS}
)
install(FILES akregator_onlinesync_plugin.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(TARGETS akregator_onlinesync_plugin DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES akregator_onlinesync_plugin.rc DESTINATION ${DATA_INSTALL_DIR}/akregator_onlinesync_plugin)