tfcollins / homebrew-formulae

Some useful homebrew taps
2 stars 3 forks source link

libad9361-iio brew install with iio-scope #1

Closed tfcollins closed 3 years ago

tfcollins commented 6 years ago

Currently libad9361-iio brew install doesn't place header files currently so includes will break when compiling against it

rgov commented 3 years ago

This is probably resolved by #9. If you want, you could add a simple compilation to the test section. Here's an example for how we test that libgnuradio-iio headers exist and the library can be linked against.

    testpath/"test.cpp").write <<~EOS
       #include <iio/math.h>
       int main() {
         gr::iio::iio_math::make("0");
         return 0;
       }
     EOS
     system ENV.cxx, "-std=c++11", "-L#{lib}", "-lgnuradio-iio", "-o", "test", "test.cpp"
     system "./test"