I am creating an encryption library in android studio by android NDK. I am using CMakeLists.txt script.
In the C++ file, I want to include #include <openssl/sha.h>.
How can I include OpenSSL in my c++ file?
I am creating an encryption library in android studio by android NDK. I am using CMakeLists.txt script.
In the C++ file, I want to include #include <openssl/sha.h>.
How can I include OpenSSL in my c++ file?
 
    
     
    
    What you need is to have in CMakeLists.txt a line like
INCLUDE_DIRECTORIES(SYSTEM "/path/to/openssl")
then in the C++ source file you simply
#include <sha.h> // or #include <openssl/sha.h>
