mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00

TODO from https://github.com/fluxer/katana/issues/7. kget and libktorrent cannot be build separately because libktorrent depends on boost (or miniboost which is bundled) and kget depends on libktorrent. syndication include paths were adjusted to build from the top-level directory since it was used not only by akregator, that is no longer the case and it should probably be moved to akregator sub-directory but that will be decided in the future. Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
157 lines
3.6 KiB
CMake
157 lines
3.6 KiB
CMake
project(syndication)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory( tests )
|
|
endif()
|
|
|
|
add_subdirectory( atom )
|
|
add_subdirectory( rdf )
|
|
add_subdirectory( rss2 )
|
|
|
|
add_definitions( -DQT_STRICT_ITERATORS )
|
|
add_definitions( -DQT_NO_CAST_FROM_ASCII )
|
|
add_definitions( -DQT_NO_CAST_TO_ASCII )
|
|
add_definitions( -DQT_NO_CAST_FROM_BYTEARRAY )
|
|
|
|
########### next target ###############
|
|
|
|
set(librss2local_SRCS
|
|
rss2/category.cpp
|
|
rss2/cloud.cpp
|
|
rss2/document.cpp
|
|
rss2/enclosure.cpp
|
|
rss2/image.cpp
|
|
rss2/item.cpp
|
|
rss2/parser.cpp
|
|
rss2/source.cpp
|
|
rss2/textinput.cpp
|
|
rss2/tools_p.cpp
|
|
)
|
|
|
|
|
|
set(librdflocal_la_SRCS
|
|
rdf/parser.cpp
|
|
rdf/dublincorevocab.cpp
|
|
rdf/dublincore.cpp
|
|
rdf/syndicationvocab.cpp
|
|
rdf/syndicationinfo.cpp
|
|
rdf/contentvocab.cpp
|
|
rdf/item.cpp
|
|
rdf/image.cpp
|
|
rdf/textinput.cpp
|
|
rdf/document.cpp
|
|
rdf/rssvocab.cpp
|
|
rdf/node.cpp
|
|
rdf/property.cpp
|
|
rdf/literal.cpp
|
|
rdf/resource.cpp
|
|
rdf/model.cpp
|
|
rdf/modelmaker.cpp
|
|
rdf/rdfvocab.cpp
|
|
rdf/sequence.cpp
|
|
rdf/statement.cpp
|
|
rdf/resourcewrapper.cpp
|
|
rdf/nodevisitor.cpp
|
|
)
|
|
|
|
set(libatomlocal_SRCS
|
|
atom/category.cpp
|
|
atom/constants.cpp
|
|
atom/content.cpp
|
|
atom/document.cpp
|
|
atom/entry.cpp
|
|
atom/generator.cpp
|
|
atom/link.cpp
|
|
atom/parser.cpp
|
|
atom/person.cpp
|
|
atom/source.cpp
|
|
atom/atomtools.cpp
|
|
)
|
|
|
|
|
|
set(libmapperrss2local_SRCS
|
|
mapper/feedrss2impl.cpp
|
|
mapper/itemrss2impl.cpp
|
|
mapper/enclosurerss2impl.cpp
|
|
mapper/categoryrss2impl.cpp
|
|
mapper/imagerss2impl.cpp
|
|
)
|
|
|
|
set(libmapperrdflocal_SRCS
|
|
mapper/feedrdfimpl.cpp
|
|
mapper/itemrdfimpl.cpp
|
|
mapper/imagerdfimpl.cpp
|
|
)
|
|
|
|
set(libmapperatomlocal_SRCS
|
|
mapper/feedatomimpl.cpp
|
|
mapper/itematomimpl.cpp
|
|
mapper/enclosureatomimpl.cpp
|
|
mapper/categoryatomimpl.cpp
|
|
)
|
|
|
|
set(syndication_LIB_SRCS
|
|
${librss2local_SRCS}
|
|
${librdflocal_la_SRCS}
|
|
${libatomlocal_SRCS}
|
|
${libmappercommonlocal_SRCS}
|
|
${libmapperrss2local_SRCS}
|
|
${libmapperrdflocal_SRCS}
|
|
${libmapperatomlocal_SRCS}
|
|
documentsource.cpp
|
|
documentvisitor.cpp
|
|
elementwrapper.cpp
|
|
constants.cpp
|
|
feed.cpp
|
|
item.cpp
|
|
enclosure.cpp
|
|
category.cpp
|
|
image.cpp
|
|
tools.cpp
|
|
person.cpp
|
|
personimpl.cpp
|
|
loader.cpp
|
|
global.cpp
|
|
dataretriever.cpp
|
|
specificitemvisitor.cpp
|
|
specificitem.cpp
|
|
specificdocument.cpp
|
|
abstractparser.cpp
|
|
)
|
|
|
|
|
|
add_library(syndication ${LIBRARY_TYPE} ${syndication_LIB_SRCS})
|
|
generate_export_header(syndication EXPORT_FILE_NAME ksyndication_export.h)
|
|
|
|
target_link_libraries(syndication ${KDE4_KIO_LIBS})
|
|
|
|
set_target_properties(syndication PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
|
|
install(TARGETS syndication EXPORT kdepimlibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
########### install files ###############
|
|
|
|
install( FILES abstractparser.h
|
|
category.h
|
|
constants.h
|
|
dataretriever.h
|
|
documentsource.h
|
|
documentvisitor.h
|
|
elementwrapper.h
|
|
enclosure.h
|
|
feed.h
|
|
global.h
|
|
image.h
|
|
item.h
|
|
${CMAKE_CURRENT_BINARY_DIR}/ksyndication_export.h
|
|
loader.h
|
|
mapper.h
|
|
parsercollection.h
|
|
person.h
|
|
specificdocument.h
|
|
specificitem.h
|
|
specificitemvisitor.h
|
|
syndication.h
|
|
tools.h
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/syndication COMPONENT Devel)
|