Compare commits
2
Commits
e0ce893d06
...
516a658b91
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
516a658b91 | ||
|
|
eecfb5f90c |
+15
-2
@@ -8,7 +8,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
include(FetchContent)
|
||||
|
||||
# Option to use mailio-based IMAP (OFF by default to avoid Boost dependency issues)
|
||||
option(USE_MAILIO_IMAP "Use mailio-based IMAP synchronizer (requires Boost)" ON)
|
||||
option(USE_MAILIO_IMAP "Use mailio-based IMAP synchronizer (requires Boost)" OFF)
|
||||
|
||||
if (USE_MAILIO_IMAP)
|
||||
# Use pre-built mailio and Boost from thirdparty/
|
||||
@@ -21,7 +21,20 @@ if (USE_MAILIO_IMAP)
|
||||
find_package(mailio REQUIRED CONFIG)
|
||||
endif()
|
||||
|
||||
find_package(Qt6 COMPONENTS Core Gui Widgets Network Sql Test Concurrent REQUIRED)
|
||||
# Find OpenSSL for S/MIME support (optional on some platforms)
|
||||
find_package(OpenSSL QUIET)
|
||||
if (OPENSSL_FOUND)
|
||||
message(STATUS "OpenSSL found: ${OPENSSL_VERSION}")
|
||||
add_compile_definitions(OPENSSL_FOUND)
|
||||
else()
|
||||
if (WIN32)
|
||||
message(WARNING "OpenSSL not found - S/MIME support disabled. Install OpenSSL and set OPENSSL_ROOT_DIR to enable.")
|
||||
else()
|
||||
message(WARNING "OpenSSL not found - S/MIME support disabled")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(Qt6 COMPONENTS Core Gui Widgets Network Sql Test Concurrent PrintSupport REQUIRED)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
Reference in New Issue
Block a user