Skip to content

Instantly share code, notes, and snippets.

@baodrate
Forked from Kronuz/gtest.rb
Last active January 25, 2019 21:16
Show Gist options
  • Save baodrate/b4eb757fea01d2f64a3cead0d9fad72f to your computer and use it in GitHub Desktop.
Save baodrate/b4eb757fea01d2f64a3cead0d9fad72f to your computer and use it in GitHub Desktop.
Homebrew Formula for Google Test
# 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