How to install GTest on Mac OS X with homebrew?

a-rukin picture a-rukin · Apr 6, 2013 · Viewed 24.9k times · Source

I'm trying to install gtest with my packet manager Home Brew but there is no repository for it. I tried to download gtest frome code.google but i cannt understand how to install it, because cmake and make doesnt solve the problem

Answer

slund picture slund · Oct 6, 2017

If you want the latest version without using Homebrew:

git clone https://github.com/google/googletest
cd googletest
mkdir build
cd build
cmake ..
make
make install