一、安裝配置
1、簡介
2、安裝
下載地址:
https://code.google.com/p/googletest/downloads/list
解壓安裝:
unzip gtest-1.7.0.zip && cd gtest-1.7.0 && ./configure && make
頭文件目錄為 include/gtest ,鏈接庫為 lib/.libs/libgtest.{a,so}
例子代碼在 samples/ 目錄下,或直接訪問以下 URL:
https://code.google.com/p/googletest/wiki/V1_7_Documentation
http://www.cnblogs.com/coderzh/archive/2009/04/06/1426755.html
3、簡單 Demo