-
creatoolsGeneration=<directory where you want to generate>
installPrefix=$creatoolsGeneration/creatools_install
#installPrefix=/usr/local
cvsUser=<USER>
-
docGeneration=<OFF|ON> let it to OFF!
-
buildType=<Release|Debug>
-
-
-
+gdcmVersion=<GDCM1|GDCM2>
cd scripts
-sh All.sh $creatoolsGeneration $docGeneration $cvsUser $installPrefix $buildType
+sh All.sh $creatoolsGeneration $docGeneration $cvsUser $installPrefix $buildType $gdcmVersion
cd ..
if [ $# = 0 ]
then
echo "Use it as :"
-echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType>"
+echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version>"
echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
+echo "with 'GDCM Version' : GDCM1 / GDCM2"
echo " "
-echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug"
+echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2"
exit 0
fi
echo $3
echo $4
echo $5
+echo $6
echo "----------"
-if [ $# != 5 ]
+if [ $# != 6 ]
then
-echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType>"
+echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <installPrefix> <buildType> <GDCM Version>"
echo "with 'installPrefix' : /usr/local or <directory where you want to generate>/creatools_install"
echo " "
-echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug"
+echo "ex : sh All.sh /tmp/gendir OFF jpr /tmp/gendir/creatools_install Debug GDCM2"
exit 0
fi
cvsUserName=$3
installPrefix=$4
buildType=$5
+gdcmVersion=$6
scriptDir=$PWD
echo scriptDir
fi
fi
-
# --------------------------------
# start_point = 1 : remove everything but source files
#---------------------------------
then
# BBTK
sh cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
- sh bbtkVariables.sh $bbtksource $generationdir $docgeneration
+ sh bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
sh compilemod.sh $buildType $bbtksource $generationdir
sh ctestmod.sh $bbtksource $generationdir
fi
then
# creaBruker
sh cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
- sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
+ sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
sh compilemod.sh $buildType $creabrukersource $generationdir
echo generationdir
sh ctestmod.sh $creabrukersource $generationdir
then
# creaImageIO
sh cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
- sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration
+ sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
sh compilemod.sh $buildType $creaimagesource $generationdir
sh ctestmod.sh $creaimagesource $generationdir
fi
# $1 : bbtk
# $2 : generationdir
# $3 : ON/OFF (generate doc)
+# $4 : GDCM1 / GDCM2
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+# use GDCM1 as default !
+if [ $4 = "GDCM2" ]
+then
+boolgdcm2 = ON
+boolgdcm1 = OFF
+else
+boolgdcm2 = OFF
+boolgdcm1 = ON
+fi
+
cmake -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
-cmake -D BUILD_BBTK_DOC:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=$3 -D BUILD_BBTK_DOC_DOXYGEN:BOOL=$3 -D BUILD_BBTK_DOC_PACKAGE:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_DOC:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 -D BUILD_BBTK_DOC_GUIDES_PDF:BOOL=$3 -D BUILD_BBTK_DOC_DOXYGEN:BOOL=$3 -D BUILD_BBTK_DOC_PACKAGE:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
cmake CMakeCache.txt
cmake CMakeCache.txt
# $1 : creaBruker
# $2 : generationdir
# $3 : ON/OFF (generate doc)
+# $4 : GDCM1 / GDCM2
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+# use GDCM1 as default !
+if [ $4 = "GDCM2" ]
+then
+boolgdcm2 = ON
+boolgdcm1 = OFF
+else
+boolgdcm2 = OFF
+boolgdcm1 = ON
+fi
+
+
#cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt
-cmake -D BUILD_creaBruker_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_creaBruker_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
# $1 : 'creaImageIO'
# $2 : generationdir
# $3 : ON/OFF (generate doc)
+# $4 : GDCM1 / GDCM2
currentdir=$2
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
+# use GDCM1 as default !
+if [ $4 = "GDCM2" ]
+then
+boolgdcm2 = ON
+boolgdcm1 = OFF
+else
+boolgdcm2 = OFF
+boolgdcm1 = ON
+fi
+
cmake -D crea_DIR:PATH=$currentdir/creatools_bin/creaBin CMakeCache.txt
cmake -D BBTK_DIR:PATH=$currentdir/creatools_bin/bbtkBin CMakeCache.txt
cmake -D creaBruker_DIR:PATH=$currentdir/creatools_bin/creaBrukerBin CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt
-cmake -D BUILD_creaImageIO_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_creaImageIO_DOC:BOOL=$3 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 CMakeCache.txt
cmake -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
cmake CMakeCache.txt