Skip to content

Instantly share code, notes, and snippets.

@joonas-yoon
Forked from Kronuz/gtest.rb
Last active June 4, 2020 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joonas-yoon/9ec4ce1c1374ba8b8473020ced3879d8 to your computer and use it in GitHub Desktop.
Save joonas-yoon/9ec4ce1c1374ba8b8473020ced3879d8 to your computer and use it in GitHub Desktop.
Homebrew Formula for Google Test
# Homebrew Formula for Google Test
# Usage: brew install --HEAD https://gist.githubusercontent.com/joonas-yoon/9ec4ce1c1374ba8b8473020ced3879d8/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.0.tar.gz"
sha256 "58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8"
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