# if [ "$suitable" = "NO" || "$suitable" = "N" || "$suitable" = "no" || "$suitable" = "n" ]
if [ "$suitable" = "NO" ]
then
-
-
-
-
echo
echo
# ------------------
docgeneration="___"
- while [[ "$docgeneration" != "YES" && "$docgeneration" != "NO" ]]
+ while [[ "$docgeneration" != "ON" && "$docgeneration" != "OFF" ]]
do
- echo "Boolean For Doc Generation : YES/NO (default is NO)"
+ echo "Boolean For Doc Generation : ON/OFF (default is OFF)"
read docgeneration
if [ "$docgeneration" = "" ]
then
- docgeneration="NO"
+ docgeneration="OFF"
fi
echo "you said : [" $docgeneration "]"
done
if [ true = true ]
then
# BBTK
+echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
sh $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
sh $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
sh $scriptDir/compilemod.sh $buildType $bbtksource $generationdir
# $3 : ON/OFF (generate doc)
# $4 : GDCM1 / GDCM2
+
binfolder=$2/creatools_bin/$1Bin
cd $binfolder
-
# use GDCM1 as default !
if [ $4 = GDCM2 ]
then
cmake -D crea_DIR:PATH=$2/creatools_bin/creaBin CMakeCache.txt
cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
+echo =============================================================================================
+echo cmake -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 -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 USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 -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
+exit 0
cmake CMakeCache.txt
cmake CMakeCache.txt
cmake CMakeCache.txt
echo -H$currentdir/creatools_source/$1
echo -B$dirInstall/
+
+echo cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
## cmake -G"Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/creatools_source/$1 -B$dirInstall/
-cmake -D BUILD_ALL:BOOL=ON -D INCLUDE_CTEST:BOOL=ON -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+pwd
+echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+echo cmake -D BUILD_ALL:BOOL=ON -D INCLUDE_CTEST:BOOL=ON -D USE_DEBUG_LIB:BOOL=$debug -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+echo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+cmake -D BUILD_ALL:BOOL=ON -D INCLUDE_CTEST:BOOL=ON -D USE_DEBUG_LIB:BOOL=$debug -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
# the following line is the right one!
#cmake -D INCLUDE_CTEST:BOOL=ON 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 -D USE_GDCM2:BOOL=$boolgdcm2 -D USE_GDCM:BOOL=$boolgdcm1 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