Script to build and install Google Mock library
- curl to download sources.
- cmake >= 2.6.2 to generate platform specific Makefiles.
- A native C++ compiler for your platform.
git clone https://github.com/apbarrero/gmockbuild.git
cd gmockbuild && ./gmockbuild.sh
Default installation prefix is /usr/local
so you may require root privileges to run the script.
Use option -p <prefix path>
to install somewhere else.
For details on script options just run:
./gmockbuild.sh -h
- Ubuntu 13.04, curl 7.29.0, cmake 2.8.10.1, gcc 4.7.3
- Mac OS X 10.7.5, curl 7.21.4, cmake 2.8.11.2, Clang 4.2.0