C++库管理Conan使用备忘

一、安装

pip install conan
pip install conan --upgrade

二、配置

conan profile detect        #自动检测并配置profile

 三、应用

conan search gdal -r conan-center
mkdir build && cd build
vi conanfile.txt

创建conanfile.txt

[requires]
gdal/3.4.3
[generators]
cmake
[imports]
include, * -> 3rd/include
lib, * -> 3rd/lib

安装包

conan install .
posted @ 2023-04-26 18:52  松山居士  阅读(101)  评论(0编辑  收藏  举报