How to install Gtest On MacOS git clone https://github.com/google/googletest.git cd googletest makedir build && cd build cmake -DCMAKE_CXX_STANDARD=17 .. make sudo make install ######test mkdir gtestDemo vi CMakeList.txt echo “export CPLUS_INCLUDE_PATH=/usr/local/include >> ~/.zshrc echo export