在android studio

时间:2017-06-27 01:21:30

标签: android c++ android-studio android-ndk boringssl

我正在android NDK中在android studio中创建一个加密库。我正在使用CMakeLists.txt脚本。

在C ++文件中,我想要包含#include <openssl/sha.h>

如何在我的c ++文件中包含OpenSSL?

1 个答案:

答案 0 :(得分:1)

您需要的是CMakeLists.txt一行

INCLUDE_DIRECTORIES(SYSTEM "/path/to/openssl")

然后在C ++源文件中,你只需

#include <sha.h> // or #include <openssl/sha.h>
相关问题