快速开始 · Conan Tutorial | 您所在的位置:网站首页 › conan的中文意思 › 快速开始 · Conan Tutorial |
快速开始运行示例依赖的安装按照自定义配置构建包查看依赖查找包快速开始
以开发一个“MD5计算器”程序为例,它依赖了一个非常流行的C++的网络库Poco来帮助它完成功能。 这个例子使用CMake作为构建工具,也可以使用别的构建工具。 这个例子的源码在github上,所以你也可以直接把代码clone下来,不用自己手动敲代码。 $ git clone https://github.com/conan-io/examples.git && cd examples/libraries/poco/md5https://github.com/conan-io/examples.git仓库里面有conan各种用法的例子,建议clone下来系统的学习一下。 继续回到本例,按照以下步骤执行。 运行示例 首先创建一个目录,在里面创建一个md5.cpp文件,包含以下内容: // md5.cpp #include "Poco/MD5Engine.h" #include "Poco/DigestStream.h" #include int main(int argc, char** argv) { Poco::MD5Engine md5; Poco::DigestOutputStream ds(md5); ds |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |