Add proper qmake/cmake usage to README.md

This commit is contained in:
Assam Boudjelthia
2020-03-05 16:09:11 +02:00
committed by BogDan Vatra
parent bf38cb6cc5
commit 01e38a456f
+14 -2
View File
@@ -8,9 +8,21 @@ The following directories are available
* `Qt-5.12.4_5.13.0`: this has OpenSSL 1.1.x which can be used **ONLY** with Qt 5.12.4 and 5.13.0. Be aware that on Android 5 (API 21) these libs names are clashing with the system SSL libs which are using OpenSSL 1.0, this means your Qt app will fail to use OpenSSL 1.1 as the system ones are already loaded by the OS.
* `latest`: used for Qt 5.12.5+ and 5.13.1+.
To add OpenSSL in your qmake project just add the line below to your `.pro` file:
## How to use
To add OpenSSL in your QMake project, append the following to your `.pro` project file:
```
include(<path/to/android_openssl/openssl.pri)
android: include(<path/to/android_openssl/openssl.pri)
```
To add OpenSSL in your CMake project, append the following to your project's `CMakeLists.txt` file:
```
if (ANDROID)
include(<path/to/android_openssl/CMakeLists.txt)
endif()
```
There is also a `static` folder which contains the OpenSSL static libs prefixed with the abi. These libs are useful to build Qt **5.14.1+**.