You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
353 B
Bash

uname_s=$(uname -s)
dir_name="linux"
if [ "$uname_s" == "Darwin" ];then
echo "MacOS"
# shellcheck disable=SC2034
dir_name="darwin"
fi
BUILD_DIR=build/${dir_name}
mkdir -p ${BUILD_DIR}
# shellcheck disable=SC2164
cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARE=ON -DBUILD_SAMPLES=OFF -DBUILD_TEST=OFF ../..
make -j4
make install