CPPUNIT在vs2010实践的编译配置实践

1、下载并编译出cppunit代码

      http://sourceforge.net/p/cppunit/code/HEAD/tree/

      本文直接下载的是605节来编译的 cppunit-code-605-trunk.zip

 

2、编译

     在cppunit-code-605-trunk\cppunit\ 目录下有 Build2010.sln,直接点击编译即可,solution中会有project用例报错---INSTALL-VS2010.txt

Note that the MSB3073 "build errors" reported when building the 'simple_plugin' and
'hierarchy' projects are a demonstration of failed unit tests and are not actual build
errors.

   1)会生成 cppunit-code-605-trunk\cppunit\lib\里面的库文件等

    2)头文件cppunit-code-605-trunk\cppunit\include\

 

3、工程实践

需要从上面编译的目录拷贝东东

cppunit里面包含的文件

 

头文件配置

 

库文件配置1---cppunitd.lib

库文件配置2

$(projectDir)\cppunit\lib;

 

 

测试代码如下

可以参考CPPUNIT源码工程里面的simple工程即可借鉴

 

本地实践结果截图效果如下

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值