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 # the following stupid test is used at debug time; Please don't remove!
74 rm -rf $sourcesDir/gdcm*
80 if [ $OperatingSystem = "MacOS" ]
82 curl http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
84 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
87 tar -xvzf gdcm_05_Mai_2011.tar.gz
91 if [ $buildType = "Debug" ]
98 # the following stupid test is used at debug time; Please don't remove!
103 dirInstall=$binDir/$libname-Bin
104 export GDCM_DIR=$installPrefixThird/lib/gdcm/
107 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
108 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
109 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
110 cmake -D VTK_DIR:PATH=$dirInstallVTK CMakeCache.txt
111 cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
121 cp tth $installPrefixThird/bin
125 # deal with create creatools_third_party_libraries_config.sh
126 # is now done in ThirdParty-install-Finalize.sh