| 1 |
include(../cmake_plugins.cmake) |
| 2 |
set(PLUGIN_TARGET "rssguard-standard") |
| 3 |
|
| 4 |
set(SOURCES |
| 5 |
src/definitions.h |
| 6 |
src/gui/formdiscoverfeeds.cpp |
| 7 |
src/gui/formdiscoverfeeds.h |
| 8 |
src/gui/formeditstandardaccount.cpp |
| 9 |
src/gui/formeditstandardaccount.h |
| 10 |
src/gui/formstandardfeeddetails.cpp |
| 11 |
src/gui/formstandardfeeddetails.h |
| 12 |
src/gui/formstandardimportexport.cpp |
| 13 |
src/gui/formstandardimportexport.h |
| 14 |
src/gui/standardaccountdetails.cpp |
| 15 |
src/gui/standardaccountdetails.h |
| 16 |
src/gui/standardfeeddetails.cpp |
| 17 |
src/gui/standardfeeddetails.h |
| 18 |
src/gui/standardfeedexpdetails.cpp |
| 19 |
src/gui/standardfeedexpdetails.h |
| 20 |
src/parsers/atomparser.cpp |
| 21 |
src/parsers/atomparser.h |
| 22 |
src/parsers/feedparser.cpp |
| 23 |
src/parsers/feedparser.h |
| 24 |
src/parsers/icalparser.cpp |
| 25 |
src/parsers/icalparser.h |
| 26 |
src/parsers/jsonparser.cpp |
| 27 |
src/parsers/jsonparser.h |
| 28 |
src/parsers/rdfparser.cpp |
| 29 |
src/parsers/rdfparser.h |
| 30 |
src/parsers/rssparser.cpp |
| 31 |
src/parsers/rssparser.h |
| 32 |
src/parsers/sitemapparser.cpp |
| 33 |
src/parsers/sitemapparser.h |
| 34 |
src/standardcategory.cpp |
| 35 |
src/standardcategory.h |
| 36 |
src/standardfeed.cpp |
| 37 |
src/standardfeed.h |
| 38 |
src/standardfeedsimportexportmodel.cpp |
| 39 |
src/standardfeedsimportexportmodel.h |
| 40 |
src/standardserviceentrypoint.cpp |
| 41 |
src/standardserviceentrypoint.h |
| 42 |
src/standardserviceroot.cpp |
| 43 |
src/standardserviceroot.h |
| 44 |
) |
| 45 |
|
| 46 |
set(UI_FILES |
| 47 |
src/gui/formdiscoverfeeds.ui |
| 48 |
src/gui/formstandardimportexport.ui |
| 49 |
src/gui/standardaccountdetails.ui |
| 50 |
src/gui/standardfeeddetails.ui |
| 51 |
src/gui/standardfeedexpdetails.ui |
| 52 |
) |
| 53 |
|
| 54 |
# Add ZLIB. |
| 55 |
if(ENABLE_COMPRESSED_SITEMAP) |
| 56 |
find_package(ZLIB REQUIRED) |
| 57 |
|
| 58 |
# Add qcompressor. |
| 59 |
list(APPEND SOURCES |
| 60 |
src/3rd-party/qcompressor/qcompressor.cpp |
| 61 |
src/3rd-party/qcompressor/qcompressor.h |
| 62 |
) |
| 63 |
endif(ENABLE_COMPRESSED_SITEMAP) |
| 64 |
|
| 65 |
if(ZLIB_FOUND) |
| 66 |
message(STATUS "Using system zlib ${ZLIB_VERSION_STRING}.") |
| 67 |
endif(ZLIB_FOUND) |
| 68 |
|
| 69 |
prepare_rssguard_plugin(${PLUGIN_TARGET}) |
| 70 |
|
| 71 |
if(QT_VERSION_MAJOR EQUAL 6) |
| 72 |
target_link_libraries(${PLUGIN_TARGET} PUBLIC |
| 73 |
Qt${QT_VERSION_MAJOR}::Core5Compat |
| 74 |
) |
| 75 |
endif() |
| 76 |
|
| 77 |
if(ZLIB_FOUND) |
| 78 |
target_include_directories(${PLUGIN_TARGET} AFTER |
| 79 |
PRIVATE |
| 80 |
${ZLIB_INCLUDE_DIRS} |
| 81 |
) |
| 82 |
|
| 83 |
target_compile_definitions(${PLUGIN_TARGET} |
| 84 |
PRIVATE |
| 85 |
ENABLE_COMPRESSED_SITEMAP |
| 86 |
) |
| 87 |
|
| 88 |
target_link_libraries(${PLUGIN_TARGET} PRIVATE |
| 89 |
${ZLIB_LIBRARIES} |
| 90 |
) |
| 91 |
endif(ZLIB_FOUND) |