Here is the link to the project source https://github.com/google/googletest

Here is the code for installing Google Test (gtest)

sudo apt-get install libgtest-dev

Install cmake

sudo apt-get install cmake

compiling gtest

cd /usr/src/gtest
sudo cmake CMakeLists.txt
sudo make
sudo cp *.a /usr/lib
sudo mkdir /usr/local/lib/googletest

linking gtest

sudo ln -s /usr/lib/libgtest.a /usr/local/lib/gtest/libgtest.a
sudo ln -s /usr/lib/libgtest_main.a /usr/local/lib/gtest/libgtest_main.a