find_package(KDE4 REQUIRED) find_package(Plasma REQUIRED) find_package(KdepimLibs REQUIRED) include (KDE4Defaults) include (MacroLibrary) include(MacroOptionalAddSubdirectory) include(MacroOptionalDependPackage) find_package(Boost REQUIRED) add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1) include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} ${Boost_INCLUDE_DIR}) set(rss_engine_SRCS rss.cpp ) kde4_add_plugin(plasma_engine_rss ${rss_engine_SRCS}) target_link_libraries(plasma_engine_rss plasma ${KDE4_KDECORE_LIBS} ${KDE4_SYNDICATION_LIBS}) install(TARGETS plasma_engine_rss DESTINATION ${PLUGIN_INSTALL_DIR}) install(FILES plasma-dataengine-rss.desktop DESTINATION ${SERVICES_INSTALL_DIR})