conan包管理器安装

$] yum install centos-release-scl -y
$] yum install rh-python36 -y
$] python --verison
$] yum groupinstall 'Development Tools' -y
$] yum install python-pip -y
$] pip --version
$] pip install --upgrade pip 
$] pip install conan
$] conan -v
$] conan remote add conan-transit https://conan-transit.bintray.com
$] conan remote add bincrafters "https://api.bintray.com/conan/bincrafters/public-conan"

conan使用案例

$] git clone https://github.com/conan-community/poco-md5-example.git
$] cd poco-md5-example
$] mkdir build
$] cd build
$] conan install .. --build Poco --build OpenSSL
$] cmake ..
$] cmake --build .
$] cd bin 
$] ./md5  #执行编译完成的可执行程序
c3fcd3d76192e4007dfb496cca67e13b

conan其他命令

搜索Poco库

conan search Poco* –remote=conan-center

搜索ffmpeg库

conan search ffmpeg* –remote=all

官方文档

*https://blog.conan.io/

*https://docs.conan.io/en/latest/getting_started.html

*https://github.com/bincrafters/conan-sdl2_ttf