googletest编译与使用…
编译
github下载源码: https://github.com/google/googletest.git
下载最新的版本,解压,进入目录:
1 |
mkdir build |
编译时添加头文件./googletest/include, 或者./googlemock/include。以及库文件./build/lib/libgtest.a或者其他对应的库文件,根据需要拷贝添加。