--- /dev/null
+
+#!/bin/sh
+
+if [ $# = 0 ]
+then
+ echo "Use it as :"
+ echo "sh install_thirdparty_fedora.sh <nameOfTheGenerationDirectory> <installPrefix> <buildType>"
+ echo " "
+ echo "ex : sh install_thirdparty_fedora.sh /tmp/gendir /home/jpr/myInstallDirectory Debug"
+ exit 0
+fi
+
+echo $#
+echo "----------"
+echo $0
+echo $1
+echo $2
+echo $3
+echo "----------"
+
+if [ $# != 3 ]
+then
+ echo "Use it as :"
+ echo "sh install_thirdparty_fedora.sh <nameOfTheGenerationDirectory> <installPrefix> <buildType>"
+ echo " "
+ echo "ex : sh install_thirdparty_fedora.sh /tmp/gendir /home/jpr/myInstallDirectory Debug"
+ exit 0
+fi
+
+
+generationdir=$1
+installPrefix=$2
+buildType=$3
+
+scriptDir=$PWD
+sourcesDir=$generationdir/thirdparty_sources
+binDir=$generationdir/thirdparty_bin
+
+mkdir $generationdir
+mkdir $sourcesDir
+mkdir $binDir
+
+# the following stupid test is used at debug time; Please don't remove!
+if [ true = false ]
+then
+ sudo yum install cmake -y
+ sudo yum install cmake-gui -y
+ sudo yum install doxygen -y
+ sudo yum install graphviz -y
+ sudo yum install texlive -y
+ sudo yum install latex2html -y
+ sudo yum install wxGTK-devel wxBase -y
+ sudo yum install boost-devel -y
+ sudo yum install sqlite-devel -y
+ sudo yum install qt-devel -y
+ sudo yum install mesa-libOSMesa-devel -y
+fi
+
+
+
+# the following stupid test is used at debug time; Please don't remove!
+if [ true = false ]
+then
+ rm -rf $sources/VTK*
+ rm -rf $sources/vtk*
+ rm -rf $sources/InsightToolkit*
+ rm -rf $sources/gdcm*
+ cd $sources
+ wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/vtk-5.6.1.tar.gz
+ wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_08_Dic_2009.tar.gz
+ wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
+ tar -xvzf vtk-5.6.1.tar.gz
+ tar -xvzf gdcm_08_Dic_2009.tar.gz
+ tar -xvzf InsightToolkit-3.20.0.tar.gz
+fi
+
+
+
+if [ $buildType = "Debug" ]
+then
+debug="ON"
+else
+debug="OFF"
+fi
+
+
+if [ true = true ]
+then
+ libname=VTK
+ dirInstall=$binDir/$libname-Bin
+ dirInstallVTK=$dirInstall
+ mkdir $dirInstall
+ cd $dirInstall
+ cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+ cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt
+ make -j 2
+ sudo make install
+ cd ..
+fi
+
+if [ true = true ]
+then
+ libname=gdcm
+ dirInstall=$binDir/$libname-Bin
+ mkdir $dirInstall
+ cd $dirInstall
+ cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+ cmake -D VTK_DIR:PATH=$dirInstallVTK CMakeCache.txt
+ cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
+ make -j 2
+ sudo make install
+ cd ..
+fi
+
+if [ true = true ]
+then
+ libname=InsightToolkit-3.20.0
+ dirInstall=$binDir/$libname-Bin
+ mkdir $dirInstall
+ cd $dirInstall
+ cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
+ cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
+ cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
+ cmake CMakeCache.txt
+ make -j 2
+ sudo make install
+ cd ..
+fi
+
+