#!/bin/sh # Configure for a local install. Build files will be generated in the # directory $toplevel/local and installation will go in the directory # $toplevel/build. # # This is useful to be able to run demos from within the source tree # without needing to specify an installation directory. # TODO: Add -DCMAKE_BUILD_TYPE=xxxx flag INSTALLDIR=`pwd`"/local" mkdir -p ../build_demo cd ../build_demo cmake ../demo -DCMAKE_INSTALL_PREFIX=$INSTALLDIR make