Allwmake 946 Bytes
Newer Older
1
#!/bin/sh
2
cd ${0%/*} || exit 1    # Run from this directory
3
4
5

# Parse arguments for library compilation
. $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments
6

7
8
9
# Source the wmake functions
. $WM_DIR/scripts/wmakeFunctions

10
11
# ensure CMake gets the correct C/C++ compilers
[ -n "$WM_CC" ]  && export CC="$WM_CC"
12
13
14
[ -n "$WM_CXX" ] && export CXX="$WM_CXX"

set -x
15
16
if [ -d "$ParaView_DIR" -a -r "$ParaView_DIR" ]
then
17
    wmake $targetType vtkPVFoam
18

19
20
    if [ "$targetType" != "objects" ]
    then
21
22
        sourceDir=$PWD/PVFoamReader

23
24
25
26
27
28
29
30
31
32
33
34
        # 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
35
36
fi

37
#------------------------------------------------------------------------------