3 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
7 echo "==================================================="
10 echo "YOU NEED TO RUN 'Configure' (0) First !"
11 echo "==================================================="
17 source $PWD/scripts/CreaTools-configure.sh
20 echo $PWD/scripts/CreaTools-configure.sh
21 echo --generationdir--
23 echo --docgeneration--
25 echo --installPrefix--
27 echo --installPrefixThird--
28 echo $installPrefixThird
33 # echo --sourcesFrom--
37 # echo --start_point--
43 sourcesDir=$generationdir/thirdparty_sources
44 binDir=$generationdir/thirdparty_bin
46 if [ ! -e $generationdir ]
49 chown $loginUserName $generationdir
50 chgrp $loginGroupName $generationdir
53 if [ ! -e $sourcesDir ]
57 #chown $loginUserName:$loginGroupName $sourcesDir
58 chown $loginUserName $sourcesDir
59 chgrp $loginGroupName $sourcesDir
65 chown $loginUserName $binDir
66 chgrp $loginGroupName $binDir
69 echo "we remove old stuff"
70 rm -rf $sourcesDir/gdcm*
75 echo "we download new stuff"
76 if [ $OperatingSystem = "MacOS" ]
78 curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
79 # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
80 tar -xvf gdcm_05_Mai_2011.tar.gz
82 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
83 tar -xvzf gdcm_05_Mai_2011.tar.gz
86 if [ $buildType = "Debug" ]
93 # the following stupid test is used at debug time; Please don't remove!
98 dirInstall=$binDir/$libname-Bin
99 export GDCM_DIR=$installPrefixThird/lib/gdcm/
103 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
104 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
105 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
106 cmake -D VTK_DIR:PATH=$dirInstallVTK CMakeCache.txt
107 cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
117 cp tth $installPrefixThird/bin
121 # deal with create creatools_third_party_libraries_config.sh
122 # is now done in ThirdParty-install-Finalize.sh