- Get the download zip from the website: http://code.google.com/p/googlemock/downloads/list
- Unzip this to a directory, say
${GMOCK_ROOT}
:
cd ${GMOCK_ROOT}
mkdir build
cd build
g++ -I../gtest/include -I../gtest -I../include -I.. -c ../gtest/src/gtest-all.cc
g++ -I../gtest/include -I../gtest -I../include -I.. -c ../gmock/src/gmock-all.cc
ar -rv libgmock.a gtest-all.o gmock-all.o
Not working any longer, need to replace
gtest
in the name bygoogletest
π Don't know what to do for compiling gmock