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

4
5
# Source CMake functions
. $WM_PROJECT_DIR/wmake/scripts/cmakeFunctions
6

7
8
9
10
11
12
# -----------------------------------------------------------------------------

echo "======================================================================"
echo "${PWD##*/} : $PWD"
echo

13
14
15
16
17
18
19
20
21
22
unset depend
if [ -d "$VTK_DIR" ]
then
    depend="VTK_DIR=$VTK_DIR"
elif [ -d "$ParaView_DIR" ]
then
    depend="ParaView_DIR=$ParaView_DIR"
fi

if [ -n "$depend" ]
23
then
24
    if [ "$targetType" != objects ]
25
    then
26
27
        if type cmake > /dev/null 2>&1
        then
28
            cmakeVersioned "$depend" $PWD || {
29
30
31
32
33
34
35
                echo
                echo "    WARNING: incomplete build of VTK-based post-processing"
                echo
            }
        else
            echo "WARNING: skipped - needs cmake"
        fi
36
    fi
37
else
38
39
40
    echo "WARNING: skipped - needs a VTK or a ParaView installation"
    echo "    - For ParaView  : export the 'ParaView_DIR' variable"
    echo "    - For VTK       : export the 'VTK_DIR'      variable"
41
42
fi

43
44
echo "======================================================================"

45
# -----------------------------------------------------------------------------