CMake的使用

CMake版本升级

1、在网址 https://cmake.org/files/v3.1/ 下载 cmake-3.1.0.tar.gz
2、解压
3、执行 ./configure
4、执行 make
5、执行 sudo make install
6、执行 sudo update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force
7、运行 cmake --version 查看版本号

References

Index
Wiki

find_package https://cmake.org/cmake/help/latest/command/find_package.html
6.CMake find_package使用小结 https://www.jianshu.com/p/2668e7b88da7
cmake教程4–find_package https://blog.csdn.net/haluoluo211/article/details/80559341

cmake之add_library, target_link_libraries 2


版权声明:本文为walkerfan原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。