X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=ctest%2Fdashboard%2Fcmakemod.sh;h=4a401cde76a2cb6e7ba5bb158f92dbdc57fb879d;hb=d6db13a2bbdd68fd8162f500616637906b123f8a;hp=2f80981a02bd981595a6d9250d6e6801a407b41c;hpb=5f3676d2d219c77843f8a7a2c3bb1c9cbfbcde26;p=creaToolsTools.git diff --git a/ctest/dashboard/cmakemod.sh b/ctest/dashboard/cmakemod.sh index 2f80981..4a401cd 100644 --- a/ctest/dashboard/cmakemod.sh +++ b/ctest/dashboard/cmakemod.sh @@ -5,7 +5,14 @@ VTKdir=$3 installPrefix=$4 dirInstall=$currentdir/tmpCreaTools_INSTALL/$1Bin installPrefix=$4 +buildType=$5 +if [ buildType = "Debug" ] +then +debug = "ON" +else +debug = "OFF" +fi echo dirInstall echo $dirInstall @@ -15,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