googletest
1.1、googletest简介
是什么 ?:a Testing and Mocking Framework for C++ by Google.
开发语言:C++
源码仓库:https://github.com/google/googletest
1.2、通过包管理器安装googletest
操作系统包管理器安装命令
Allvcpkg
vcpkg install googletest
vcpkg install googletest:x64-osx
vcpkg install googletest:x64-linux
vcpkg install googletest:x64-windows
macOSHomeBrewbrew install googletest
GNU/LinuxHomeBrewbrew install googletest
aptsudo apt-get install -y googletest
CentOSyumsudo yum install -y googletest
dnfsudo dnf install -y googletest
openSUSEzyppersudo zypper install -y googletest
Alpine Linuxapksudo apk add googletest

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm googletest
Gentoo LinuxPortagesudo emerge googletest
1.3、通过编译源码安装googletest
1.4、googletest中包含的头文件
1.5、googletest中包含的库文件
  • libgtest.{a | so | dylib}
  • libgtest_main.{a | so | dylib}
  • libgmock.{a | so | dylib}
  • libgmock_main.{a | so | dylib}