项目地址:https://github.com/miloyip/json-tutorial
源码copy之后,如果你按照他的说明,在cmake上执行configure和generrate完毕:

然后,尝试运行单元测试,你会发现:

不能!直接!运行!
网上说的什么文件重复那一套在这不管用.
我们打开build文件夹,找到它:

leptjson_test.sln,用vs将其打开:

调试-开始执行(不调试)

然鹅还是出错

"无法启动程序 系统找不到指定的文件"
右键将leptjson_test设置为启动项目

再执行一次
终于能输出结果啦!

可以愉快的接着改代码了
网友评论