Allwmake 1.23 KB
Newer Older
1
#!/bin/sh
2
3
cd ${0%/*} || exit 1                             # Run from this directory
. $WM_PROJECT_DIR/wmake/scripts/cmakeFunctions   # The CMake functions
4

5
6
7
8
9
10
# -----------------------------------------------------------------------------

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

11
12
13
14
15
16
17
18
19
20
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" ]
21
then
22
    if [ "$targetType" != objects ]
23
    then
24
        if command -v cmake > /dev/null 2>&1
25
        then
26
            cmakeVersioned "$depend" $PWD || {
27
28
29
30
31
32
33
                echo
                echo "    WARNING: incomplete build of VTK-based post-processing"
                echo
            }
        else
            echo "WARNING: skipped - needs cmake"
        fi
34
    fi
35
else
36
37
38
    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"
39
40
fi

41
42
echo "======================================================================"

43
# -----------------------------------------------------------------------------