#!/bin/sh cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for library compilation . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments # Source the wmake functions . $WM_DIR/scripts/wmakeFunctions # ensure CMake gets the correct C/C++ compilers [ -n "$WM_CC" ] && export CC="$WM_CC" [ -n "$WM_CXX" ] && export CXX="$WM_CXX" #set -x if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ] then wmake $targetType vtkPVFoam if [ "$targetType" != "objects" ] then sourceDir=$PWD/PVFoamReader # Where are any generated files stored? findObjectDir $sourceDir ( mkdir -p $objectsDir \ && cd $objectsDir \ && cmake $sourceDir \ && make ) || { echo echo "WARNING: incomplete build of ParaView OpenFOAM plugin" } fi fi #------------------------------------------------------------------------------