diff options
| -rw-r--r-- | CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/plugins/messageservices/imap/CMakeLists.txt | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 752ee069..451b33a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,12 @@ endif() if(USE_HTML_PARSER) find_package(Qt6 REQUIRED COMPONENTS Gui) endif() + +find_package(ZLIB) +if(NOT ZLIB_FOUND) + message("Zlib not found, IMAP COMPRESS support disabled") +endif() + if(USE_ACCOUNTS_QT) pkg_check_modules(LIBACCOUNTS REQUIRED accounts-qt6 IMPORTED_TARGET) endif() diff --git a/src/plugins/messageservices/imap/CMakeLists.txt b/src/plugins/messageservices/imap/CMakeLists.txt index 3cba0484..098a22c2 100644 --- a/src/plugins/messageservices/imap/CMakeLists.txt +++ b/src/plugins/messageservices/imap/CMakeLists.txt @@ -37,6 +37,10 @@ target_link_libraries(imap install(TARGETS imap LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/qt6/plugins/messagingframework/messageservices) +if(ZLIB_FOUND) + target_compile_definitions(imap PRIVATE QT_QMF_HAVE_ZLIB) +endif() + if(BUILD_TESTING) add_custom_target(link_imap ALL COMMAND ${CMAKE_COMMAND} -E create_symlink imap/libimap.so ../libimap.so |
