#!/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 vtkPVblockMesh if [ "$targetType" != "objects" ] then sourceDir=$PWD/PVblockMeshReader # Where are any generated files stored? findObjectDir $sourceDir ( mkdir -p $objectsDir \ && cd $objectsDir \ && cmake $sourceDir \ && make ) || { echo echo "WARNING: incomplete build of ParaView BlockMesh plugin" } fi fi #------------------------------------------------------------------------------