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 sourcesDir=$generationdir/thirdparty_sources
21 binDir=$generationdir/thirdparty_bin
23 if [ ! -e $generationdir ]
26 chown $loginUserName $generationdir
27 chgrp $loginGroupName $generationdir
30 if [ ! -e $sourcesDir ]
34 #chown $loginUserName:$loginGroupName $sourcesDir
35 chown $loginUserName $sourcesDir
36 chgrp $loginGroupName $sourcesDir
42 chown $loginUserName $binDir
43 chgrp $loginGroupName $binDir
46 echo "we remove old stuff"
47 rm -rf $sourcesDir/InsightToolkit*
51 if [ $OperatingSystem = "MacOS" ]
53 curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
54 tar -xvf InsightToolkit-3.20.0.tar.gz
56 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
59 if [ $buildType = "Debug" ]
66 # the following stupid test is used at debug time; Please don't remove!
70 libname=InsightToolkit-3.20.0
71 dirInstall=$binDir/$libname-Bin
72 export ITK_DIR=$installPrefixThird/lib/InsightToolkit/
75 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
76 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
77 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
78 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
79 #uncomment following line if you want to use the bleeding edge of GDCM2!
80 #cmake -D ITK_USE_SYSTEM_GDCM:BOOL=ON CMakeCache.txt