fcl 1.5.0 (new formula)
Closes #22726. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
2ad64a9ca8
commit
855149dbff
1 changed files with 34 additions and 0 deletions
34
Formula/fcl.rb
Normal file
34
Formula/fcl.rb
Normal file
|
@ -0,0 +1,34 @@
|
|||
class Fcl < Formula
|
||||
desc "Flexible Collision Library"
|
||||
homepage "https://flexible-collision-library.github.io/"
|
||||
url "https://github.com/flexible-collision-library/fcl/archive/0.5.0.tar.gz"
|
||||
sha256 "8e6c19720e77024c1fbff5a912d81e8f28004208864607447bc90a31f18fb41a"
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "boost"
|
||||
depends_on "libccd"
|
||||
|
||||
needs :cxx11
|
||||
|
||||
def install
|
||||
ENV.cxx11
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.cpp").write <<~EOS
|
||||
#include <fcl/shape/geometric_shapes.h>
|
||||
#include <cassert>
|
||||
|
||||
int main() {
|
||||
assert(fcl::Box(1, 1, 1).computeVolume() == 1);
|
||||
}
|
||||
EOS
|
||||
|
||||
system ENV.cxx, "test.cpp", "-std=c++11", "-I#{include}", "-L#{lib}",
|
||||
"-lfcl", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue