cgal 4.14
Closes #38008. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
415c623efb
commit
a63e25ab40
1 changed files with 12 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
class Cgal < Formula
|
||||
desc "Computational Geometry Algorithm Library"
|
||||
homepage "https://www.cgal.org/"
|
||||
url "https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.13/CGAL-4.13.tar.xz"
|
||||
sha256 "3e3dd7a64febda58be54c3cbeba329ab6a73b72d4d7647ba4931ecd1fad0e3bc"
|
||||
url "https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-4.14/CGAL-4.14.tar.xz"
|
||||
sha256 "59464b1eaee892f2223ba570a7642892c999e29524ab102a6efd7c29c94a29f7"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
@ -12,7 +12,7 @@ class Cgal < Formula
|
|||
sha256 "0a368594840007d0a433b702ef5392f332d38e7bc68a83ffc4771f8ca5fa5877" => :sierra
|
||||
end
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "cmake" => [:build, :test]
|
||||
depends_on "boost"
|
||||
depends_on "eigen"
|
||||
depends_on "gmp"
|
||||
|
@ -51,8 +51,14 @@ class Cgal < Formula
|
|||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cxx, "-I#{include}", "-L#{lib}", "-lCGAL",
|
||||
"surprise.cpp", "-o", "test"
|
||||
assert_equal "15\n15", shell_output("./test").chomp
|
||||
(testpath/"CMakeLists.txt").write <<~EOS
|
||||
cmake_minimum_required(VERSION 3.1...3.13)
|
||||
find_package(CGAL)
|
||||
add_executable(surprise surprise.cpp)
|
||||
target_link_libraries(surprise PRIVATE CGAL::CGAL)
|
||||
EOS
|
||||
system "cmake", "-L", "-DCMAKE_BUILD_RPATH=#{HOMEBREW_PREFIX}/lib", "-DCMAKE_PREFIX_PATH=#{prefix}", "."
|
||||
system "cmake", "--build", ".", "-v"
|
||||
assert_equal "15\n15", shell_output("./surprise").chomp
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue