2 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
6 echo "==================================================="
9 echo "YOU NEED TO RUN 'Configure' (0) First !"
10 echo "==================================================="
18 sourcesDir=$generationdir/thirdparty_sources
19 binDir=$generationdir/thirdparty_bin
21 if [ ! -e $generationdir ]
24 chown $loginUserName $generationdir
25 chgrp $loginGroupName $generationdir
28 if [ ! -e $sourcesDir ]
32 #chown $loginUserName:$loginGroupName $sourcesDir
33 chown $loginUserName $sourcesDir
34 chgrp $loginGroupName $sourcesDir
40 chown $loginUserName $binDir
41 chgrp $loginGroupName $binDir
44 echo "we remove old stuff"
45 rm -rf $sourcesDir/InsightToolkit*
49 if [ $OperatingSystem = "MacOS" ]
51 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 :-(
52 tar -xvf InsightToolkit-3.20.0.tar.gz
54 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
57 if [ $buildType = "Debug" ]
64 # the following stupid test is used at debug time; Please don't remove!
68 libname=InsightToolkit-3.20.0
69 dirInstall=$binDir/$libname-Bin
70 export ITK_DIR=$installPrefixThird/lib/InsightToolkit/
73 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
74 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
75 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
76 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
77 #uncomment following line if you want to use the bleeding edge of GDCM2!
78 #cmake -D ITK_USE_SYSTEM_GDCM:BOOL=ON CMakeCache.txt