| 1 |
include(../cmake_plugins.cmake) |
| 2 |
set(PLUGIN_TARGET "rssguard-gmail") |
| 3 |
|
| 4 |
set(SOURCES |
| 5 |
src/definitions.h |
| 6 |
src/gmailentrypoint.cpp |
| 7 |
src/gmailentrypoint.h |
| 8 |
src/gmailnetworkfactory.cpp |
| 9 |
src/gmailnetworkfactory.h |
| 10 |
src/gmailserviceroot.cpp |
| 11 |
src/gmailserviceroot.h |
| 12 |
src/gui/emailpreviewer.cpp |
| 13 |
src/gui/emailpreviewer.h |
| 14 |
src/gui/emailrecipientcontrol.cpp |
| 15 |
src/gui/emailrecipientcontrol.h |
| 16 |
src/gui/formaddeditemail.cpp |
| 17 |
src/gui/formaddeditemail.h |
| 18 |
src/gui/formeditgmailaccount.cpp |
| 19 |
src/gui/formeditgmailaccount.h |
| 20 |
src/gui/gmailaccountdetails.cpp |
| 21 |
src/gui/gmailaccountdetails.h |
| 22 |
|
| 23 |
src/3rd-party/mimesis/mimesis.cpp |
| 24 |
src/3rd-party/mimesis/mimesis.hpp |
| 25 |
src/3rd-party/mimesis/quoted-printable.cpp |
| 26 |
src/3rd-party/mimesis/quoted-printable.hpp |
| 27 |
|
| 28 |
src/3rd-party/richtexteditor/mrichtextedit.cpp |
| 29 |
src/3rd-party/richtexteditor/mrichtextedit.h |
| 30 |
src/3rd-party/richtexteditor/mtextedit.cpp |
| 31 |
src/3rd-party/richtexteditor/mtextedit.h |
| 32 |
) |
| 33 |
|
| 34 |
set(UI_FILES |
| 35 |
src/gui/emailpreviewer.ui |
| 36 |
src/gui/formaddeditemail.ui |
| 37 |
src/gui/gmailaccountdetails.ui |
| 38 |
src/3rd-party/richtexteditor/mrichtextedit.ui |
| 39 |
) |
| 40 |
|
| 41 |
set(GMAIL_CLIENT_ID "" CACHE STRING "GMail client ID") |
| 42 |
set(GMAIL_CLIENT_SECRET "" CACHE STRING "GMail client secret") |
| 43 |
|
| 44 |
prepare_rssguard_plugin(${PLUGIN_TARGET}) |
| 45 |
|
| 46 |
if(NOT GMAIL_CLIENT_ID STREQUAL "" AND NOT GMAIL_CLIENT_SECRET STREQUAL "") |
| 47 |
target_compile_definitions(rssguard-gmail |
| 48 |
PRIVATE |
| 49 |
|
| 50 |
GMAIL_OFFICIAL_SUPPORT |
| 51 |
GMAIL_CLIENT_ID="${GMAIL_CLIENT_ID}" |
| 52 |
GMAIL_CLIENT_SECRET="${GMAIL_CLIENT_SECRET}" |
| 53 |
) |
| 54 |
|
| 55 |
message(STATUS "Enabling official Gmail support.") |
| 56 |
else() |
| 57 |
message(STATUS "Gmail client ID/secret variables are not set. Disabling official support.") |
| 58 |
endif() |
| 59 |
|
| 60 |
target_include_directories(rssguard-gmail |
| 61 |
PUBLIC |
| 62 |
src/3rd-party/richtexteditor |
| 63 |
) |