How to install(https://github.com/google/googletest/blob/main/googletest/README.md)
This is a simple project to demonstrate how to use goolge test in your project.
This is a very simple usage of GTest, for more information, please refer to Google Test and Google Mock.
Also, ROS2 has a very good example of using GTest(colcon, ament_gtest, gtest), please refer to ROS2 GTest
mkdir build
cd build
cmake ..
make# in build folder
./test/GtestExample_test