1.下载jsoncpp源码
2.首先建议jsoncpp源码编译成动态库
https://www.bilibili.com/video/BV1pb4y1W7ZZ
https://www.bilibili.com/video/BV1Ra4y1e7gL
(1) 用QT的Cmake工具
(2)用Visual studio
a.工具打开jsoncpp源码,在CMakeLists.txt右键->jsoncpp的CMake设置,选中如图加一个Release版本的编译。
b.在CMakeLists.txt右键->配置jsoncpp
c.在CMakeLists.txt右键->安装
3.在项目中引用jsoncpp动态库
4.使用jsoncpp
标签:CMakeLists,QT,c++,json,源码,右键,txt,jsoncpp From: https://www.cnblogs.com/fps2tao/p/17847059.html