如何使用自制软件在Mac OS X上安装GTest? [英] How to install GTest on Mac OS X with homebrew?
本文介绍了如何使用自制软件在Mac OS X上安装GTest?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用我的数据包管理器 Home Brew 安装gtest,但是没有用于它的存储库.我尝试从code.google下载gtest,但我不明白如何安装它,因为 cmake 和 make 无法解决问题
I'm trying to install gtest with my packet manager Home Brew but there is no repository for it. I tried to download gtest frome code.google but i cannt understand how to install it, because cmake and make doesnt solve the problem
推荐答案
如果不使用Homebrew就想要最新版本:
If you want the latest version without using Homebrew:
git clone https://github.com/google/googletest
cd googletest
mkdir build
cd build
cmake ..
make
make install
这篇关于如何使用自制软件在Mac OS X上安装GTest?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文