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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With