--- /dev/null
+Automatic compilation for all the Creatools
+
+--> WINDOWS USERS :
+Change your CVS user in the file All.bat
+
+--> LINUX USERS :
+Change your CVS user in the file cvscheckout.sh
+Change the entry 'VTK_DIR:PATH=' of cmakemod.sh, acording to your own computer
+Use ssh-add and give your pass-phrase (for cvs checkout)
+Run the script as :
+sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <VTKdir> <installPrefix>
+ ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory
+
+sh All.sh name_of_the_directory_to_generate ON
+(ON : to generate documentation)
+
+
+Requirements
+
+Donwload and install crea_Developers_tools, crea_ThirdParty_dlls, crea_ThirdParty_Libraries and VisualStudioExpress2008
+from http://www.creatis.insa-lyon.fr/site/fr/CreatoolsDownload
+
+Copy all the .bat files into one directoy where the tests are going to be run
+execute All.bat
+
+Not forget to run your ssh key with puttyAgent
+
+All the creatools projects are downloaded from the CVS, compiled and the CTest for the dashboard is run.
+
+
+
+
+=============Install cmake =========================
+
+Install
+ visualStudio
+ Putty
+ Graphviz
+ doxygen
+ TortoiseCVS
+ NSIS
+ cmake (outside of "Programs Files")
+ crea_ThirdParty_Libraries (outside of "Programs Files")
+
+outside of "Programs Files"
+To avoid the probleme of: Read only
+
+
+=============Test dashboard in local with: Windows, php, mysql
+
+
+0)
+Install EasyPhp outside of "Programs Files" directory
+avoid Read Only conflicts
+
+1)
+Download with svn CDASH
+https://www.kitware.com/svn/CDash/Release-1-6-4
+y put it in www of your "<INSTALL_DIR>/EasyPHP" instalation
+
+2) modify php.ini confiuration
+In EasyPHP=5.3.3/conf_files
+ php.ini
+ uncomment :
+ extension=php_xsl.dll
+ extension=php_curl.dll
--- /dev/null
+cd scrips
+
+set buildType=Release
+set docGeneration=OFF
+set cvsUser=davila
+
+All.bat %buildType% %docGeneration% %cvsUser%
+
+cd ..
+
--- /dev/null
+creatoolsGeneration=~/Creatis/All2
+docGeneration=OFF
+cvsUser=davila
+vtkDir=/usr/lib64/vtk-5.4/
+instalPrefix=/usr/local
+buildType=Release
+
+sudo pwd
+cd scripts
+echo sh All.sh $creatoolsGeneration $docGeneratin $cvsUser $vtkDir $installPrefix $buildType
+sh All.sh $creatoolsGeneration $docGeneration $cvsUser $vtkDir $installPrefix $buildType
+cd ..
+
--- /dev/null
+creatoolsGeneration=~/Creatis/All2
+docGeneration=<OFF|ON>
+cvsUser=<USER>
+vtkDir=/usr/lib64/vtk-5.4/
+instalPrefix=/usr/local
+buildType=<Release|Debug>
+
+sudo pwd
+cd scripts
+sh All.sh $creatoolsGeneration $docGeneration $cvsUser $~ $installPrefix $buildType
+cd ..
+
--- /dev/null
+rem %1 = buildtype
+rem %2 = docgeneration
+rem %3 = cvsUser
+
+rem @echo off
+set buildtype=%1
+set docgeneration=%2
+set cvsUser=%3
+
+set creasourcefolder=crea
+set bbtksourcefolder=bbtk
+set creamaracassourcefolder=creaMaracasVisu
+set creaenvironmentsource=creaEnvironment
+set creabrukersource=creaBruker
+set creaimagesourcefolder=creaImageIO
+set creacontourssource=creaContours
+set crearigidregistrationssource=creaRigidRegistration
+set bbtkgeditorsource=bbtkGEditor
+set creatoolssource=creaTools
+
+set currentdir=%~dp0
+rem set currentdir=%currentdir:\=/%
+set dirInstall=%currentdir%\tmpCreaTools_INSTALL
+rmdir %dirInstall% /s /q
+rmdir Result_Installers /s /q
+mkdir Result_Installers
+
+call cvscheckout.bat %creasourcefolder% %cvsUser%
+call cvscheckout.bat %bbtksourcefolder% %cvsUser%
+call cvscheckout.bat %creamaracassourcefolder% %cvsUser%
+call cvscheckout.bat %creaenvironmentsource% %cvsUser%
+call cvscheckout.bat %creabrukersource% %cvsUser%
+call cvscheckout.bat %creaimagesourcefolder% %cvsUser%
+call cvscheckout.bat %creacontourssource% %cvsUser%
+call cvscheckout.bat %crearigidregistrationssource% %cvsUser%
+call cvscheckout.bat %bbtkgeditorsource% %cvsUser%
+call cvscheckout.bat %creatoolssource% %cvsUser%
+
+
+
+
+rem CREA
+call cleanmod.bat %creasourcefolder%
+call cmakemod.bat %creasourcefolder% %dirInstall%
+call creaVariables.bat %creasourcefolder%
+call compilemod.bat %buildtype% %creasourcefolder%
+call ctestmod.bat %creasourcefolder%
+set creadll=%~dp0
+set creadll=%creadll%%creasourcefolder%Bin\%buildtype%
+set PATH=%creadll%;%PATH%
+
+
+rem BBTK
+call cleanmod.bat %bbtksourcefolder%
+call cmakemod.bat %bbtksourcefolder% %dirInstall%
+call bbtkVariables.bat %bbtksourcefolder% %docgeneration%
+call compilemod.bat %buildtype% %bbtksourcefolder%
+call ctestmod.bat %bbtksourcefolder%
+set bbtkdll=%~dp0
+set bbtkdll=%bbtkdll%%bbtksourcefolder%Bin\%buildtype%
+set PATH=%bbtkdll%;%PATH%
+
+rem creaMaracasVisu
+call cleanmod.bat %creamaracassourcefolder%
+call cmakemod.bat %creamaracassourcefolder% %dirInstall%
+call creaMaracasVariables.bat %creamaracassourcefolder% %docgeneration%
+call compilemod.bat %buildtype% %creamaracassourcefolder%
+call ctestmod.bat %creamaracassourcefolder%
+set creamaracasdll=%~dp0%creamaracassourcefolder%\%buildtype%
+set PATH=%creamaracasdll%;%PATH%
+
+
+rem creaEnvironment
+call cleanmod.bat %creaenvironmentsource%
+call cmakemod.bat %creaenvironmentsource% %dirInstall%
+call creaenvironmentVariables.bat %creaenvironmentsource%
+call compilemod.bat %buildtype% %creaenvironmentsource%
+call ctestmod.bat %creaenvironmentsource%
+set creaenvironmentdll=%~dp0%creaenvironmentsource%\%buildtype%
+set PATH=%creaenvironmentdll%;%PATH%
+
+rem creaBruker
+call cleanmod.bat %creabrukersource%
+call cmakemod.bat %creabrukersource% %dirInstall%
+call creaBrukerVariables.bat %creabrukersource% %docgeneration%
+call compilemod.bat %buildtype% %creabrukersource%
+call ctestmod.bat %creabrukersource%
+set creabrukerdll=%~dp0%creabrukersource%\%buildtype%
+set PATH=%creabrukerdll%;%PATH%
+
+rem creaImageIO
+call cleanmod.bat %creaimagesourcefolder%
+call cmakemod.bat %creaimagesourcefolder% %dirInstall%
+call creaImageIOVariables.bat %creaimagesourcefolder% %docgeneration%
+call compilemod.bat %buildtype% %creaimagesourcefolder%
+call ctestmod.bat %creaimagesourcefolder%
+set creaimagedll=%~dp0%creaimagesourcefolder%\%buildtype%
+set PATH=%creaimagedll%;%PATH%
+
+
+rem creaContours
+call cleanmod.bat %creacontourssource%
+call cmakemod.bat %creacontourssource% %dirInstall%
+call creaContoursVariables.bat %creacontourssource% %docgeneration%
+call compilemod.bat %buildtype% %creacontourssource%
+call ctestmod.bat %creacontourssource%
+set creacontourdll=%~dp0%creacontourssource%\%buildtype%
+rem set PATH=%creacontoursdll%;%PATH%
+
+rem creaRigidRegistration
+call cleanmod.bat %crearigidregistrationssource%
+call cmakemod.bat %crearigidregistrationssource% %dirInstall%
+call creaRigidRegistrationVariables.bat %crearigidregistrationssource% %docgeneration%
+call compilemod.bat %buildtype% %crearigidregistrationssource%
+call ctestmod.bat %crearigidregistrationssource%
+rem set crearigidregistrationdll=%~dp0%crearigidregistrationssource%\%buildtype%
+rem set PATH=%crearigidregistrationdll%;%PATH%
+
+rem bbtkGEditor
+call cleanmod.bat %bbtkgeditorsource%
+call cmakemod.bat %bbtkgeditorsource% %dirInstall%
+call bbtkGEditorVariables.bat %bbtkgeditorsource% %docgeneration%
+call compilemod.bat %buildtype% %bbtkgeditorsource%
+call ctestmod.bat %bbtkgeditorsource%
+rem set bbtkgeditordll=%~dp0%bbtkgeditorsource%\%buildtype%
+rem set PATH=%bbtkgeditordll%;%PATH%
+
+rem creaTools
+call cleanmod.bat %creatoolssource%
+call cmakemod.bat %creatoolssource% %dirInstall%
+call creaToolsVariables.bat %creatoolssource%
+call compilemodCreaTools.bat %buildtype% %creatoolssource%
+rem remcall ctestmod.bat %creatoolssource%
+set creatoolsdll=%~dp0%creatoolssource%\%buildtype%
+set PATH=%creatoolssdll%;%PATH%
+
+
+rem shutdown /s
+exit /b
--- /dev/null
+#!/bin/sh
+
+if [ $# = 0 ]
+then
+echo "Use it as :"
+echo "sh All.sh <nameOfTheGenerationDirectory> <BooleanForDocGeneration> <userNameForCVS> <VTKdir> <installPrefix> <buildType>"
+echo " "
+echo "ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory"
+exit 0
+fi
+
+if [ $# != 6 ]
+then
+echo "use it as sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory Release"
+exit 0
+fi
+
+# @echo off
+
+#allow user to choose the generation dir
+#allow user to choose to generate the doc or not
+
+generationdir=$1
+cvsUserName=$3
+VTKdir=$4
+installPrefix=$5
+buildtype=$6
+
+mkdir $generationdir
+mkdir $generationdir/tmpCreaToolsBIN
+
+ creasource=crea
+ bbtksource=bbtk
+ creamaracassource=creaMaracasVisu
+ creaenvironmentsource=creaEnvironment
+ creabrukersource=creaBruker
+ creaimagesource=creaImageIO
+ creacontourssource=creaContours
+ crearigidregistrationssource=creaRigidRegistration
+ bbtkgeditorsource=bbtkGEditor
+ creatoolssource=creaTools
+
+# the following stupid test is used at debug time; Please don't remove!
+if [ true = true ]
+then
+
+rm -rf $generationdir/creaBin
+rm -rf $generationdir/bbtkBin
+rm -rf $generationdir/creamaracasBin
+rm -rf $generationdir/creaEnvironmentBin
+rm -rf $generationdir/creaBrukerBin
+rm -rf $generationdir/creaImageIOBin
+rm -rf $generationdir/creaContoursBin
+rm -rf $generationdir/creaRigidRegistrationBin
+rm -rf $generationdir/bbtkGEditorBin
+rm -rf $generationdir/creaToolsBin
+
+sh cvscheckout.sh $creasource $generationdir $cvsUserName
+sh cvscheckout.sh $bbtksource $generationdir $cvsUserName
+sh cvscheckout.sh $creamaracassource $generationdir $cvsUserName
+sh cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName
+sh cvscheckout.sh $creabrukersource $generationdir $cvsUserName
+sh cvscheckout.sh $creaimagesource $generationdir $cvsUserName
+sh cvscheckout.sh $creacontourssource $generationdir $cvsUserName
+sh cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName
+sh cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName
+sh cvscheckout.sh $creatoolssource $generationdir $cvsUserName
+
+fi
+
+# CREA
+#if [ true = false ]
+#then
+ sh cmakemod.sh $creasource $generationdir $VTKdir $installPrefix $buildType
+ sh creaVariables.sh $creasource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $creasource $generationdir
+ sh ctestmod.sh $creasource $generationdir
+#fi
+
+ creadll=$generationdir/tmpCreaTools_INSTALL/creaBin
+ LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH
+
+# echo "=in All.sh, out of crea ============================================================================ $LD_LIBRARY_PATH"
+
+
+#if [ true = false ]
+#then
+# BBTK
+ sh cmakemod.sh $bbtksource $generationdir $VTKdir $installPrefix $buildType
+# echo "============================BBTK out of cmakemod "
+
+ sh bbtkVariables.sh $bbtksource $generationdir $docgeneration
+# echo "============================BBTK out of bbtkVariables "
+
+ sh compilemod.sh $buildtype $bbtksource $generationdir
+ echo "============================BBTK out of compilemod "
+
+ sh ctestmod.sh $bbtksource $generationdir
+#fi
+
+ bbtkdll=$generationdir/tmpCreaTools_INSTALL/bbtkBin
+ LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
+
+#if [ true = false ]
+#then
+ creaMaracasVisu
+# echo "========================================================================================start creaMaracasVisu "
+ sh cmakemod.sh $creamaracassource $generationdir $VTKdir $installPrefix $buildType
+# echo "=======================================================================================creaMaracasVisu out of cmakemod "
+
+ sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $creamaracassource $generationdir
+ sh ctestmod.sh $creamaracassource $generationdir
+#fi
+ creamaracasdll=$generationdir/tmpCreaTools_INSTALL/creamaracasBin
+ LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH
+
+
+#if [ true = false ]
+#then
+# creaEnvironment
+ sh cmakemod.sh $creaenvironmentsource $generationdir $VTKdir $installPrefix $buildType
+
+ sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $creaenvironmentsource $generationdir
+ sh ctestmod.sh $creaenvironmentsource $generationdir
+#fi
+ creaenvironmentdll=$generationdir/tmpCreaTools_INSTALL/creaenvironmentBin
+ LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH
+
+#if [ true = false ]
+#then
+# creaBruker
+ sh cmakemod.sh $creabrukersource $generationdir $VTKdir $installPrefix $buildType
+ sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration
+#fi
+
+ sh compilemod.sh $buildtype $creabrukersource $generationdir
+# echo "creaBruker : out of compilemod.sh; stop here, now!"
+# exit 0
+ sh ctestmod.sh $creabrukersource $creabinfolder
+ creabrukerdll=$generationdir/tmpCreaTools_INSTALL/creabrukerBin
+ LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH
+
+# creaImageIO
+ sh cmakemod.sh $creaimagesource $generationdir $VTKdir $installPrefix $buildType
+ sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $creaimagesource $generationdir
+ sh ctestmod.sh $creaimagesource $generationdir
+ creaimagedll=$generationdir/tmpCreaTools_INSTALL/creaimageBin
+ LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH
+
+# creaContours
+ sh cmakemod.sh $creacontourssource $generationdir $VTKdir $installPrefix $buildType
+ sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $creacontourssource $generationdir
+ sh ctestmod.sh $creacontourssource $generationdir
+# creacontourdll=$generationdir/tmpCreaTools_INSTALL/creacontoursBin
+# LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH
+
+# creaRigidRegistration
+ sh cmakemod.sh $crearigidregistrationssource $generationdir $VTKdir $installPrefix $buildType
+ sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $crearigidregistrationssource $generationdir
+ sh ctestmod.sh $crearigidregistrationssource $generationdir
+# crearigidregistrationdll=$generationdir/tmpCreaTools_INSTALL/crearigidregistrationBin
+# LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
+
+# bbtkGEditor
+ sh cmakemod.sh $bbtkgeditorsource $generationdir $VTKdir $installPrefix $buildType
+ sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $bbtkgeditorsource $generationdir
+ sh ctestmod.sh $bbtkgeditorsource $generationdir
+# bbtkgeditordll=$generationdir/tmpCreaTools_INSTALL/bbtkgeditorBin
+# LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
+
+# creaTools
+ sh cmakemod.sh $creatoolssource $generationdir $VTKdir $installPrefix $buildType
+ sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
+ sh compilemod.sh $buildtype $creatoolssource $generationdir
+# sh ctestmod.sh $creatoolsbinary $generationdir
+# creatoolsdll=$generationdir/tmpCreaTools_INSTALL/creatoolsBin
+# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
+
+# shutdown /s
+# exit /b
--- /dev/null
+rem %1=creabrukersource% %2=docgeneration
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+
+cd %1Bin
+cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea CMakeCache.txt
+cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt
+cmake -D creaMaracasVisu_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaMaracasVisu CMakeCache.txt
+cmake -D BUILD_bbtkGEditor_DOC:BOOL=%2 CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+# $1 : creaBruker
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+cmake -D BBTK_DIR:PATH=$2/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt
+cmake -D creaMaracasVisu_DIR:PATH=$2/tmpCreaTools_INSTALL/creaMaracasVisuBin CMakeCache.txt
+cmake -D BUILD_bbtkGEditor_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+rem %1=bbtksourcefolder% %2=docgeneration
+
+set binfolder=%1Bin
+cd %binfolder%
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+cmake -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_DOC:BOOL=%2 CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+# $1 : bbtk
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt
+cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+cmake -D BUILD_BBTK_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 CMakeCache.txt
+
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
--- /dev/null
+REM %1=creasourcefolder
+
+set binfolder=%1Bin
+cd %binfolder%
+del *.exe
+del *.lib
+del *.dll
+del Debug\*.exe
+del Debug\*.lib
+del Debug\*.dll
+del Release\*.exe
+del Release\*.lib
+del Release\*.dll
+del RelWithDebInfo\*.exe
+del RelWithDebInfo\*.lib
+del RelWithDebInfo\*.dll
+cd ..
\ No newline at end of file
--- /dev/null
+REM %1=<Module Sources Ex. crea bbbtk creaMaracasVisu...>
+REM %2=<dirInstall>
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+set dirInstallModule=%2\%1
+
+mkdir %1Bin
+cd %1Bin
+cmake -G"Visual Studio 9 2008" -H%currentdir%%1 -B%currentdir%%1Bin
+cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%dirInstallModule% CMakeCache.txt
+cd ..
+
--- /dev/null
+#!/bin/sh
+
+currentdir=$2
+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
+
+mkdir $dirInstall
+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 -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
+
+# 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:PATH=$installPrefix CMakeCache.txt
+cd ..
--- /dev/null
+REM %1=buildtype %2=<Module Sources Ex crea bbtk creaMaracasVisu ...>
+
+cd %2Bin
+call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
+FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1
+FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 INSTALL.vcproj
+FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj
+copy %2*.exe ../Result_Installers/
+cd ..
--- /dev/null
+# $1 : useless for Linux (Release/Debug)
+
+cd $3/tmpCreaTools_INSTALL/$2Bin
+
+#echo $1
+#echo $2
+#echo $3
+
+make -j 2
+echo " "
+echo $2
+pwd
+sudo make install
+cd ..
--- /dev/null
+cd %2Bin
+call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
+FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj
+cd ..
--- /dev/null
+rem %1=creabrukersource% %2=docgeneration
+
+set binfolder=%1Bin
+cd %binfolder%
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+cmake -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_creaBruker_DOC:BOOL=%2 CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+# $1 : creaBruker
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+#cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt
+cmake -D BUILD_creaBruker_DOC:BOOL=$3 CMakeCache.txt
+cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
+
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+rem %1=creabrukersource% %2=docgeneration
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+
+cd %1Bin
+cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D creaEnvironment_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaEnvironment -D creaMaracasVisu_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaMaracasVisu -D creaImageIO_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaImageIO -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=ON CMakeCache.txt
+cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt
+cmake -D creaContours_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
--- /dev/null
+# $1 : creaBruker
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D BBTK_DIR:PATH=$2/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt
+cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt
+cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
+
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+rem %1=creabrukersource% %2=docgeneration
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+
+cd %1Bin
+cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaBruker -D USE_GDCM:BOOL=ON CMakeCache.txt
+cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt
+cmake -D BUILD_DOXYGEN_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
+cmake CMakeCache.txt
+
+cd ..
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+# $1 : 'creaImageIO'
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+currentdir=$2
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt
+cmake -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt
+cmake -D BUILD_creaImageIO_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
+
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+rem %1=creamaracassourcefolder %2=docgeneration
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+
+cd %1Bin
+cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%2 CMakeCache.txt
+cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+# $1 : bbtk
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+currentdir=$2
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt
+cmake -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON CMakeCache.txt
+cmake -D creaMaracasVisu_DOC:BOOL=$3 CMakeCache.txt
+cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt
+
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+rem %1=creabrukersource% %2=docgeneration
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+
+cd %1Bin
+cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt
+cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt
+cmake -D BUILD_creaRigidRegistration_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_PackRecalage_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
--- /dev/null
+# $1 : creaBruker
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+
+cmake -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+
+cmake CMakeCache.txt
+cmake CMakeCache.txt
+cd ..
--- /dev/null
+REM %1=<dirInstall>
+
+cd %1Bin
+cmake -D CREATOOLS_SOURCE_PATH:PATH=%1 CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+# $1 : 'creaTools'
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/tmpCreaTools_INSTALL/ CMakeCache.txt
+
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+REM %1=creasourcefolder
+
+set binfolder=%1Bin
+cd %binfolder%
+cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+# $1 : bbtk
+# $2 : generationdir
+# $3 : ON/OFF (generate doc) --> Not used
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+
+cd $binfolder
+
+cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt
+cd ..
--- /dev/null
+rem %1=creaenvironmentsource
+
+set currentdir=%~dp0
+set currentdir=%currentdir:\=/%
+
+cd %1Bin
+cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea CMakeCache.txt
+cd ..
\ No newline at end of file
--- /dev/null
+#!/bin/sh
+
+# $1 : 'creaEnvironment'
+# $2 : generationdir
+# $3 : ON/OFF (generate doc)
+
+binfolder=$2/tmpCreaTools_INSTALL/$1Bin
+cd $binfolder
+
+cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt
+
+cmake CMakeCache.txt
+
+cd ..
--- /dev/null
+sudo pwd
+sh All.sh /home/davila/Creatis/All/ OFF davila /usr/lib64/vtk-5.4/ /usr/local
+
--- /dev/null
+REM %1=<Module Sources Ex. crea bbbtk creaMaracasVisu...>
+
+set binfolder=%1Bin
+cd %binfolder%
+rem EED>> ctest -D ContinuousStart -D ContinuousUpdate -D ContinuousConfigure -D ContinuousBuild -D ContinuousTest -D ContinuousSubmit
+rem EED>> ctest -D ContinuousMemCheck -D ContinuousSubmit
+rem EED>> ctest -D ExperimentalStart -D ExperimentalUpdate -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
+rem EED>> ctest -D ExperimentalMemCheck -D ExperimentalSubmit
+ctest -D ExperimentalConfigure -D ExperimentalBuild
+rem EED>> ctest -D NightlyStart -D NightlyUpdate -D NightlyConfigure -D NightlyBuild -D NightlyTest -D NightlySubmit
+rem EED>> ctest -D NightlyMemCheck -D NightlySubmit
+cd ..
\ No newline at end of file