Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install GTest on Mac OS X with homebrew?

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

like image 701
a-rukin Avatar asked Apr 06 '13 15:04

a-rukin


People also ask

How do I run a Gtest on a Mac?

It's not complicated, just following the steps. download the gtest file from https://github.com/google/googletest/archive/release-1.8.0.zip and unzip it. If you want to use google-test please use #include <gtest/gtest.

What is Gtest H?

Google Unit Test (GTest) The Framework of Google C++ Testing is based on xUnit architecture. It is a cross platform system that provides automatic test discovery.


1 Answers

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 
like image 153
slund Avatar answered Sep 21 '22 10:09

slund