//生成库add_library( # Sets the name of the library.native-lib //名称
# Sets the library as a shared library.
SHARED //动态库
# Provides a relative path to your source file(s).
src/main/cpp/native-lib.cpp)//由这个文件生成动态库//依赖库 CMake指定的目录下 如果不是指定目录需要用 add_library引用 find_library( # Sets the name of the path variable.
log-lib //起个名字
# Specifies the name of the NDK library that
# you want CMake to locate.
log)//将上面两个库链接生成一个库target_link_libraries( # Specifies the target library.native-lib
...)