gtest的安装与使用
本篇为gtest的安装教程
-
开始
# 克隆仓库 # 慢的话就上proxy git clone https://github.com/google/googletest.git --config https.proxy=https://ip:port git clone https://github.com/google/googletest.git cd googletest mkdir build cmake .. -DBUILD_GMOCK=OFF # -DBUILD_GMOCK=OFF 选项表示不安装gmock make sudo make install
-
演示
-
参考文献
googletest官方文档