bluetiger9 / SmtpClient-for-Qt

An SMTP Client writen in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
https://github.com/bluetiger9/SmtpClient-for-Qt/wiki
GNU Lesser General Public License v2.1
449 stars 226 forks source link

For 6.7.0 it does not compile without this #155

Closed bugaenko-cyber closed 1 month ago

bugaenko-cyber commented 4 months ago

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network)

attila-tokes commented 1 month ago

Compile with CMake seems to be fine both with Qt 6.7.x and Qt 6.5.x. The Core and Network packages are already included in CmakeList.txt.

How I tried to compile with CMake:

$ mkdir build-qt-6.x.x && cd build-qt-6.x.x
$ cmake -DQT_VERSION_MAJOR=6 -DCMAKE_PREFIX_PATH=/path/to/qt/6.x.x/gcc_64/lib/cmake/Qt6/ ../src
$ cmake --build .