build.sh 367 Bytes
Newer Older
moto's avatar
moto committed
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -eux

this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
build_dir="${this_dir}/build"

mkdir -p "${build_dir}"
cd "${build_dir}"
moto's avatar
moto committed
10

moto's avatar
moto committed
11
12
13
14
15
cmake -GNinja \
      -DCMAKE_PREFIX_PATH="$(python -c 'import torch;print(torch.utils.cmake_prefix_path)')" \
      -DBUILD_SOX=ON \
      -DBUILD_KALDI=OFF \
      ..
moto's avatar
moto committed
16
cmake --build .