Compile and run examples from repository
@@ -19,14 +19,21 @@ requirements:
- ninja
host:
- eigen
+ run:
+ - eigen
test:
+ source_files:
+ - examples/
+ requires:
+ - {{ compiler('cxx') }}
commands:
- test -f $PREFIX/include/LBFGS.h # [unix]
- test -f $PREFIX/include/LBFGSB.h # [unix]
- test -d $PREFIX/include/LBFGSpp # [unix]
- if not exist %LIBRARY_PREFIX%\include\LBFGS.h exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\include\LBFGSB.h exit 1 # [win]
+ - for i in examples/*.cpp; do $CXX $CXXFLAGS -o "$i.out" "$i" && "$i.out"; done # [unix]
about:
