CMakeLists.txt使用有感
在抽取C/C++作为子项目的过程中。更改了存储目录。在目录里出现了“_”的字符。
编译的时候出现了errornot found “XXX.h”或者“XXX.cpp”等
耗费了小半天一直以为CMakeLists.txt编写有问题,或者是某些配置问题。
最后在一次尝试修改目录结构的时候只是使用了字母和数字。然后就编译通过了。
记录一下这一天大部分时间就解决这个问题了。狂汗、暴汗
#配置解析
For more information about using CMake with Android Studio, read the
参考: https://d.android.com/studio/projects/add-native-code.html
# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required(VERSION 3.4.1)
联系我
QQ:94297366
微信打赏:https://pan.baidu.com/s/1dSBXk3eFZu3mAMkw3xu9KQ
公众号推荐: