======== How to build and run =========
-
sudo apt install google-mock && libgmock-dev
-
download google test suit from https://github.com/google/googletest/archive/refs/tags/v1.13.0.zip and unzip file
-
cd path/to/googletest
-
sudo cmake CMakeLists.txt
-
sudo make
-
cd lib
-
sudo cp *.a /usr/lib
-
cd ../googlemock/include
-
sudo cp -r gmock /usr/local/include/
-
cd ../../googletest/include
-
sudo cp -r gtest /usr/local/include/
-
Now you can include gtest and gmock header files in your code
-
Go to your project code directory.
-
mkdir build && cd build
-
cmake .. && make
-
./mainApp
-
./testApp