c-gaborator/build-deps.sh
2022-01-23 17:28:23 +01:00

20 lines
311 B
Bash
Executable file

#!/bin/bash
set -ex
pushd "${0%/*}"
pushd lib
pushd pffft
if [[ -d "build" ]]; then
rm -r build
fi
if [[ -d "install" ]]; then
rm -r install
fi
mkdir build
mkdir install
pushd build
cmake .. -DUSE_TYPE_FLOAT=OFF -DUSE_TYPE_DOUBLE=ON -DCMAKE_INSTALL_PREFIX="$(pwd)/../install"
make -j$(nproc)
make install