# cmake要求低版本

cmake_minimum_required(VERSION 3.4.1)

# Creates and names a library, sets it as either STATIC
# or SHARED, and provides the relative paths to its source code.
# You can define multiple libraries, and CMake builds them for you.
# Gradle automatically packages shared libraries with your APK. add_library( # 库名称
native-lib # 设置为动态库还是静态库
SHARED # 源码相对路径
src/main/cpp/native-lib.cpp ) # Searches for a specified prebuilt library and stores the path as a
# variable. Because CMake includes system libraries in the search path by
# default, you only need to specify the name of the public NDK library
# you want to add. CMake verifies that the library exists before
# completing its build. find_library( # 定义一个库名称方便 后面target_link_libraries使用
log-lib   #cmake能定位的名称
log ) # Specifies libraries CMake should link to your target library. You
# can link multiple libraries, such as libraries you define in this
# build script, prebuilt third-party libraries, or system libraries. target_link_libraries( # Specifies the target library.
native-lib # Links the target library to the log library
# included in the NDK.
${log-lib} )

最新文章

  1. 拷贝excel里的内容转为JSON的js代码
  2. javascript函数的定义与执行
  3. 通过hibernate session.connection()获得数据库连接时,导致的查询缓慢甚至假死机问题
  4. 20150604_Andriod 窗体PopupWindow动画
  5. 新版的tomcat里面get请求通过http协议的时候似乎默认是UTF-8的编码了吗?
  6. IDEA快捷键大全
  7. 【概率】COGS 1487:麻球繁衍
  8. Apache Hadoop压缩包与Eclipse结合,导入jar包归整总结(手动)
  9. 用mysqlslap压测mysql
  10. java获取当前方法
  11. 九章算法系列(#2 Binary Search)-课堂笔记
  12. 10个值得我们关注的python博客
  13. 利用HTML5的devicemotion事件实现手机摇一摇抽奖,年会抽奖
  14. 嵌入式linux——汇编、C语言基础(一)
  15. Flink - CoGroup
  16. spiderUI窗口过小解决
  17. Eclipse的使用技巧
  18. HDU 4443 带环树形dp
  19. Java IO--字节-字符流转换
  20. 安装ELK

热门文章

  1. {MySQL的库、表的详细操作}一 库操作 二 表操作 三 行操作
  2. [No0000100]正则表达式匹配解析过程分析(正则表达式匹配原理)&regexbuddy使用&正则优化
  3. [skill][makefile] makefile 常用内容记录
  4. dp的斜率优化
  5. springboot注入properties配置到javabean
  6. linux strtock()函数使用问题
  7. 那些年读过的书《Java并发编程实战》二、如何设计线程安全类
  8. React之生命周期
  9. 关于安装SVN Service 出错 Service 'VisualSVN Server' failed to start. Please check VisualSVN Server log in Event Viewer for more details
  10. 创建目录:mkdir