Conan的使用
https://conan.io/
先上官网下载安装Conan工具
安装后将可执行文件路径加入到PATH路径中
[可参考下面的网址进行配置:
https://docs.conan.io/en/latest/getting_started.html#
]
生成一个配置文件:
conan profile new default --detect
写一个配置文件:
[requires]
thrift/0.15.0
opencv/4.1.2
#zbar
#freeimage
[generators]
cmake
qmake
[options]
#thrift:shared=True
*:shared=True
[imports]
bin, *.dll -> ../bin
bin, *.exe -> ../bin
lib, *.lib -> ../lib
include, * -> ../include
然后建个build目录:
mkdir build
cd build
conan install ..
这样就OK了。
建个目录,写个
评论