diff --git a/scripts/deps/setup-unigen.sh b/scripts/deps/setup-unigen.sh new file mode 100755 index 00000000..b4b57e2b --- /dev/null +++ b/scripts/deps/setup-unigen.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash + +set -e -u -o pipefail + +dep_dir="deps" +install_dir=$(readlink -fm "${dep_dir}"/install) + +[ ! -d "${install_dir}" ] && mkdir -p "${install_dir}" + +cd "${dep_dir}" + +git clone https://github.com/meelgroup/louvain-community +cd louvain-community +mkdir build && cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" .. +make -j10 +cd ../.. + +git clone https://github.com/meelgroup/arjun +cd arjun +mkdir build && cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" .. +make -j8 +cd ../.. + +git clone https://github.com/meelgroup/approxmc +cd approxmc +mkdir build && cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" .. +make -j8 +cd ../.. + +git clone https://github.com/meelgroup/unigen/ +cd unigen +mkdir build && cd build +cmake -DCMAKE_INSTALL_PREFIX:PATH="${install_dir}" .. +make -j8 +cd ../.. + +# EOF