gtest 代码目录结构
说明:以 gtest-1.7.0 为例
cmake, codegear, make, msvc, xcode
构建测试项目的构建文件,如 make 就是 Makefile.
To write a test program using Google Test, you need to compile Google Test into a library and link your test with it. We provide build files for some popular build systems: msvc/ for Visual Studio, xcode/ for Mac Xcode, make/ for GNU make, codegear/ for Borland C++ Builder, and the autotools script (deprecated) and CMakeLists.txt for CMake (recommended) in the Google Test root directory.
include, src
分别为 gtest 框架实现代码的头文件和 C++ 文件。
fused-src
将上面 include 和 src 中多个 .h, .cc 文件合并成一个 .h, .cc 之后的代码。
Google Test's implementation consists of ~30 files (excluding its own tests). Sometimes you may want them to be packaged up in two files (a .h and a .cc) instead, such that you can easily copy them to a new machine and start hacking there.
<