How to Install GoogleTest Frame Work On Linux(Ubuntu) PC .


Step 1: open  Terminal (ctrl+alt+t) and type

sudo apt-get install libgtest-dev (wait for few seconds)

if you have already camke in your pc then below command is not required else you can use below command to install cmake :
sudo apt-get install cmake

step 2 : go to below directory
cd /usr/src/gtest

step 3 : run the below commands :

sudo cmake CMakeLists.txt
sudo make


step  4 :  sudo cp *.a /usr/lib

Comments

Popular posts from this blog

Dynamic Memory allocation in C++ for 1d, 2d and 3d array

Write Your Own String Class:

Printing the odd and even no using Pthread