build.sh 388 Bytes
Newer Older
1 2 3 4
#!/bin/bash

mkdir build
cd build
NICLAUSSE Nicolas's avatar
NICLAUSSE Nicolas committed
5 6 7 8
if [[ "$c_compiler" == "gcc" ]]; then
  export PATH="${PATH}:${BUILD_PREFIX}/${HOST}/sysroot/usr/lib:${BUILD_PREFIX}/${HOST}/sysroot/usr/include"
fi

9 10 11
cmake .. \
      -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
      -DCMAKE_BUILD_TYPE=Release \
NICLAUSSE Nicolas's avatar
NICLAUSSE Nicolas committed
12
      -DDTKVISUALIZATION_USE_UPCOMING_VTK=OFF \
13 14 15 16
      -DCMAKE_INSTALL_LIBDIR=lib

make -j${CPU_COUNT}
make install