码迷,mamicode.com
首页 > 编程语言 > 详细

在borland c++ builder 中使用 google test (gtest)

时间:2014-09-10 19:08:20      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:http   io   使用   ar   for   sp   on   c   amp   

google test version: 1.6

c++ builder version: xe6

 

1 download google test 1.6 

2 unzip the zip file. The project file for c++ build is in codegear folder

3 complie gtest.lib and gtest_main.lib, do not do anything with gtest_unittest project (cause there might be error.)

4 set up a sample test project (console application)

  myTestSample

     gtest_src      put files of src folder of Gtest here

     include        put files of include folder of Gtest here

     lib               put gtest.lib and gtest_main.lib here

     testSrc        put the test src here

5 it is ok.  

check the sample project and the Gtest framework at  (http://download.csdn.net/detail/williamwood/7891585)

    

在borland c++ builder 中使用 google test (gtest)

标签:http   io   使用   ar   for   sp   on   c   amp   

原文地址:http://www.cnblogs.com/williamwood/p/3964871.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!