#!/bin/bash
# matplot++
cd src/thirdParty/matplot++
if [ ! -d "./build" ]; then
mkdir build
fi
cd build
cmake ..
make -j4
mv libcjmat.so ../../solib
cd ../../../..
# openblas
cd src/thirdParty/OpenBlas
if [ ! -d "./OpenBlas" ]
then
git clone https://gitcode.com/gh_mirrors/ope/OpenBLAS.git
cd OpenBlas
make -j4
else
cd OpenBlas
git pull
make -j4
fi
cp libopenblas.so ../../solib/libopenblas.so
cp libopenblas.so.0 ../../solib/libopenblas.so.0
cd ../../../..