-
-
Save baodrate/b4eb757fea01d2f64a3cead0d9fad72f to your computer and use it in GitHub Desktop.
Homebrew Formula for Google Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Homebrew Formula for Google Test | |
# from https://gist.github.com/Kronuz/96ac10fbd8472eb1e7566d740c4034f8 | |
# Usage: brew install --HEAD https://gist.githubusercontent.com/qubidt/b4eb757fea01d2f64a3cead0d9fad72f/raw/gtest.rb | |
require 'formula' | |
class Gtest < Formula | |
desc "Google Test" | |
homepage "https://github.com/google/googletest" | |
head "git://github.com/google/googletest.git", :using => :git | |
stable do | |
url "https://github.com/google/googletest/archive/release-1.8.1.tar.gz" | |
sha256 "9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c" | |
end | |
depends_on "cmake" => :build | |
def install | |
mkdir "build" do | |
system "cmake", "..", "-DCMAKE_CXX_STANDARD=11", *std_cmake_args | |
system "make", "install" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment