]> Creatis software - creaToolsTools.git/blobdiff - Install/scripts/cmakemod.sh
New structure
[creaToolsTools.git] / Install / scripts / cmakemod.sh
index 4a401cde76a2cb6e7ba5bb158f92dbdc57fb879d..89c994cd9a5dde04dfeddcfee3b3743895adcf0e 100644 (file)
@@ -3,15 +3,15 @@
 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
@@ -19,12 +19,12 @@ 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