currentdir=$2
VTKdir=$3
installPrefix=$4
-dirInstall=$currentdir/tmpCreaTools_INSTALL/$1Bin
+dirInstall=$currentdir/creatools_bin/$1Bin
installPrefix=$4
buildType=$5
-
+echo $debug
if [ buildType = "Debug" ]
then
-debug = "ON"
+debug="ON"
else
-debug = "OFF"
+debug="OFF"
fi
echo dirInstall
mkdir $dirInstall
cd $dirInstall
-echo -H$currentdir/$1
+echo -H$currentdir/creatools_source/$1
echo -B$dirInstall/
## cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/$1 -B$dirInstall/
-cmake -G"Unix Makefiles" -H$currentdir/$1 -B$dirInstall/
-cmake -D BUILD_ALL:BOOL=ON -D USE_DEBUG_LIB:BOOL=$debug CMakeCache.txt
+cmake -G"Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
+cmake -D BUILD_ALL:BOOL=ON -D USE_DEBUG_LIB:BOOL=$buildType CMakeCache.txt
# the following line is the right one!
#cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=$dirInstall -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt