cvsUser=<USER>
docGeneration=<OFF|ON> let it to OFF!
buildType=<Release|Debug>
+archi=<32|64> (processor bits number)
#sudo pwd
cd scripts
-sh All.sh $creatoolsGeneration $docGeneration $cvsUser $vtkDir $installPrefix $buildType
+sh All.sh $creatoolsGeneration $docGeneration $cvsUser $vtkDir $installPrefix $buildType $archi
cd ..
dirInstall=$currentdir/creatools_bin/$1Bin
installPrefix=$4
buildType=$5
-echo $debug
+archi=$6
+
if [ buildType = "Debug" ]
then
debug="ON"
debug="OFF"
fi
+install_lib_dir=$installPrefix/
+if [ archi = 64 ]
+install_lib_dir=$installPrefix/lib64
+else
+install_lib_dir=$installPrefix/lib
+fi
+
echo dirInstall
echo $dirInstall
echo -H$currentdir/creatools_source/$1
echo -B$dirInstall/
-##cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
-
+## cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/$1 -B$dirInstall/
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
+cmake -D BUILD_ALL:BOOL=ON -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_LIBDIR:PATH=$install_lib_dir 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