3 Commits

Author SHA1 Message Date
Alessandro Ambrosano
0025bbe48f Automatically link to OpenSSL when calling add_android_openssl_libraries() (#67)
Automatically link to OpenSSL::SSL OpenSSL::Crypto under add_android_openssl_libraries().

Also, start using add_library() to add OpenSSL libraries to the project. If the OpenSSL targets are not defined, add them with add_library() and set OPENSSL_LIB_DIR and OPENSSL_INCLUDE_DIR and store the paths to the shared libraries in the cache so that add_android_openssl_libraries() can re-use them later if OpenSSL targets are already defined.
2025-07-02 17:23:40 +03:00
Dominik Berner
5dece53f62 Set OPENSSL_ROOT_DIR for cmake if not set
This will allow people to use find_package(OpenSSL) in their root CMakeLists.txt
after including the cmake files
2023-11-28 11:05:43 +02:00
Adam
8df104940f Add a CMake function to include the OpenSSL libs for specific targets (#48)
Changes include:
* Rename CMakeLists.txt to android_openssl.cmake
* Move the CMake code into a function android_add_openssl_to_targets(), so that the caller can decide what targets get the OpenSSL libs
* update README
2023-06-20 19:56:20 +03:00