]> Creatis software - creaToolsTools.git/blobdiff - ctest/dashboard/cmakemod.sh
*** empty log message ***
[creaToolsTools.git] / ctest / dashboard / cmakemod.sh
index 37ba20ff16c7bc3c7b8658b04038acd1c4f7b558..4a401cde76a2cb6e7ba5bb158f92dbdc57fb879d 100644 (file)
@@ -4,13 +4,15 @@ currentdir=$2
 VTKdir=$3
 installPrefix=$4
 dirInstall=$currentdir/tmpCreaTools_INSTALL/$1Bin
-
-#if [$# = 4]
-#then 
 installPrefix=$4
-#else
-installPrefix="/usr/local"
-#fi
+buildType=$5
+
+if [ buildType = "Debug" ]
+then
+debug = "ON"
+else
+debug = "OFF"
+fi
 
 echo dirInstall
 echo $dirInstall
@@ -20,8 +22,9 @@ cd $dirInstall
 echo -H$currentdir/$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 CMakeCache.txt
+cmake -D BUILD_ALL:BOOL=ON -D USE_DEBUG_LIB:BOOL=$debug 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
@@ -29,5 +32,5 @@ cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
 # This one : only for misinstalled vtk:
 # modify VTK_DIR:PATH=, acording to your own computer
 
-cmake -D INCLUDE_CTEST:BOOL=ON -D BBTK_USE_WXWIDGETS:BOOL=ON -D VTK_DIR:PATH=$VTKdir -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin -D CMAKE_INSTALL_PREFIX=$installPrefix CMakeCache.txt
+cmake -D INCLUDE_CTEST:BOOL=ON -D BBTK_USE_WXWIDGETS:BOOL=ON -D VTK_DIR:PATH=$VTKdir -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
 cd ..