Skip to content

Instantly share code, notes, and snippets.

@strezh
Created February 17, 2015 09:10
Show Gist options
  • Select an option

  • Save strezh/b7557779539facf06cee to your computer and use it in GitHub Desktop.

Select an option

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
@strezh

strezh commented Mar 11, 2022

Copy link
Copy Markdown
Author

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

jaques-sam commented Mar 13, 2022 via email

Copy link
Copy Markdown

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