Skip to content

Instantly share code, notes, and snippets.

@strezh
Created February 17, 2015 09:10
Show Gist options
  • Save strezh/b7557779539facf06cee to your computer and use it in GitHub Desktop.
Save strezh/b7557779539facf06cee to your computer and use it in GitHub Desktop.
Install google-mock on Debian
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
@jaques-sam
Copy link

jaques-sam commented Mar 11, 2022

Not working any longer, need to replace gtest in the name by googletest 😉 Don't know what to do for compiling gmock

@strezh
Copy link
Author

strezh commented Mar 11, 2022

thanks for your comment!
This gist is obsolete, googletest and googlemock both in the one repository now.
And this repo contains CMake file for simple building:

git clone https://github.com/google/googletest.git
cd googletest
mkdir build && cd build 
cmake .. && make -j4

@jaques-sam
Copy link

jaques-sam commented Mar 13, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment