2 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
6 echo "==================================================="
9 echo "YOU NEED TO RUN 'Configure' (0) First !"
10 echo "==================================================="
16 source $PWD/scripts/CreaTools-configure.sh
19 echo $PWD/scripts/CreaTools-configure.sh
20 echo --generationdir--
22 echo --docgeneration--
24 echo --installPrefix--
26 echo --installPrefixThird--
27 echo $installPrefixThird
32 # echo --sourcesFrom--
36 # echo --start_point--
42 sourcesDir=$generationdir/thirdparty_sources
43 binDir=$generationdir/thirdparty_bin
45 if [ ! -e $generationdir ]
48 chown $loginUserName:$loginGroupName $generationdir
50 if [ ! -e $sourcesDir ]
61 # the following stupid test is used at debug time; Please don't remove!
66 rm -rf $sourcesDir/gdcm*
72 if [ $OperatingSystem = "MacOS" ]
74 curl http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
76 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
79 tar -xvzf gdcm_05_Mai_2011.tar.gz
84 if [ $buildType = "Debug" ]
92 # the following stupid test is used at debug time; Please don't remove!
97 dirInstall=$binDir/$libname-Bin
98 export GDCM_DIR=$installPrefixThird/lib/gdcm/
101 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
102 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
103 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
104 cmake -D VTK_DIR:PATH=$dirInstallVTK CMakeCache.txt
105 cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
115 cp tth $installPrefixThird/bin
119 # deal with create creatools_third_party_libraries_config.sh
120 # is now done in ThirdParty-install-Finalize.sh