conan
- conan search,查看网络库
- conan profile detect,生成缓存信息
- conan new cmake_exe/cmake_lib,创建cmakelists.txt
- conan install .,执行Conanfile.txt中的配置,生成相关的bat文件
项目中配置Conanfile.txt(或者Conan.py)
yml
[requires]
poco/1.9.4
[generators]
cmake
cmake配置如下
bash
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_basic_setup()
vspkg
git clone https://github.com/microsoft/vcpkg
运行bootstrap-vcpkg.bat,下载vcpkg.exe执行程序
- vcpkg search
- vcpkg install
- vcpkg list
bash
set(CMAKE_TOOLCHAIN_FILE "D:\vcpkg-master\vcpkg\scripts\buildsystems\vcpkg.cmake") # 请将路径替换为实际的 vcpkg 安装路径