# yaml_cpp_demo **Repository Path**: clangwu/yaml_cpp_demo ## Basic Information - **Project Name**: yaml_cpp_demo - **Description**: (已完结)本仓库是在windows下使用yaml-cpp的模板工程 - **Primary Language**: C/C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-12 - **Last Updated**: 2022-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # yaml-cpp demo(Release Version) ### 1.按这个教程来安装yaml-cpp https://cloud.tencent.com/developer/article/1701056 ### 2.修改下顶层CMakeList.txt即可使用 ``` # 根据自己电脑的yaml-cpp文件安装位置设置yaml-cpp的include路径 include_directories("E:/XXX/yaml-cpp/include") # 设置yaml-cpp静态库的包含路径 link_directories("E:/XXX/yaml-cpp/build/Release") ``` ### 3.CMake使用Release编译即可看到程序结果 output: ``` name: name:Clang sex:male age:22 ``` 注意:编译器使用VS专属的MSVC编译器