3 echo "in ThirdParty-install-ITK.sh, source " $PWD/scripts/CreaTools-configure.sh
4 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
8 echo "==================================================="
11 echo "YOU NEED TO RUN 'Configure' (0) First !"
12 echo "==================================================="
17 echo $PWD/scripts/CreaTools-configure.sh
19 more $PWD/scripts/CreaTools-configure.sh
21 source $PWD/scripts/CreaTools-configure.sh
24 echo $PWD/scripts/CreaTools-configure.sh
25 echo --generationdir--
27 echo --docgeneration--
29 echo --installPrefix--
31 echo --installPrefixThird--
32 echo $installPrefixThird
39 # echo --sourcesFrom--
43 # echo --start_point--
49 sourcesDir=$generationdir/thirdparty_sources
50 binDir=$generationdir/thirdparty_bin
52 if [ ! -e $generationdir ]
55 chown $loginUserName $generationdir
56 chgrp $loginGroupName $generationdir
59 if [ ! -e $sourcesDir ]
63 #chown $loginUserName:$loginGroupName $sourcesDir
64 chown $loginUserName $sourcesDir
65 chgrp $loginGroupName $sourcesDir
71 chown $loginUserName $binDir
72 chgrp $loginGroupName $binDir
75 echo "we remove old stuff"
76 rm -rf $sourcesDir/InsightToolkit*
77 rm -rf $binDir/InsightToolkit*
81 echo "we download new stuff"
82 if [ $OperatingSystem = "MacOS" ]
84 curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
85 # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
86 tar -xvf InsightToolkit-3.20.0.tar.gz
88 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
89 tar -xzvf InsightToolkit-3.20.0.tar.gz
92 if [ $buildType = "Debug" ]
99 # the following stupid test is used at debug time; Please don't remove!
103 libname=InsightToolkit-3.20.0
104 dirInstall=$binDir/$libname-Bin
105 export ITK_DIR=$installPrefixThird/lib/InsightToolkit/
109 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
110 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
111 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
112 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
113 #uncomment following line if you want to use the bleeding edge of GDCM2!
114 #cmake -D ITK_USE_SYSTEM_GDCM:BOOL=ON CMakeCache.txt