Skip to content
Snippets Groups Projects
build_moose-core.sh.in 716 B
Newer Older

# NOTICE: This file is parsed by cmake to create a shell script. Not all syntax
# will play well with cmake. CMAKE replaces @FOO@ and ${FOO} with cmake variable
# values.
Dilawar Singh's avatar
Dilawar Singh committed
if [ -z $MAKEOPTS ]; then
    export MAKEOPTS="-j${NPROC}"
Dilawar Singh's avatar
Dilawar Singh committed
fi
echo "Building pymoose and creating bdist."
export GSL_ROOT_DIR=@GSL_ROOT_DIR@
export HDF5_ROOT=@HDF5_ROOT@
cd @PYMOOSE_BUILD_DIR@
cmake -DCMAKE_INSTALL_PREFIX=@PYMOOSE_INSTALL_DIR@ \
    -DCMAKE_BUILD_TYPE=Release \
    -DWITH_BOOST=@WITH_BOOST@ \
    -DPYTHON_EXECUTABLE=@PYTHON_EXECUTABLE@ \
Dilawar Singh's avatar
Dilawar Singh committed
make $MAKEOPTS
ctest --output-on-failure 
make bdist