echo
exit 0
fi
-echo $PWD/scripts/CreaTools-configure.sh
-echo --- beg
-more $PWD/scripts/CreaTools-configure.sh
-echo --- end
+
source $PWD/scripts/CreaTools-configure.sh
echo "------"
fi
cd $sourcesDir
-## if [ $ITKVersion = ITK3 ]
-## then
-## # deal with ITK3
-## #EED itkfile=InsightToolkit-3.20.0.patchCreatis.tar.gz
-## #EED libname=InsightToolkit-3.20.0
-##
-## #EED itkfile=InsightToolkit-3.20.1.tar.gz
-## #EED libname=InsightToolkit-3.20.1
-##
-## itkfile=InsightToolkit-3.20.1-patchCreatis.tgz
-## libname=InsightToolkit-3.20.1-patchCreatis
-##
-## else
-## # deal with ITK4
-## itkfile=InsightToolkit-4.13.1.zip
-## libname=InsightToolkit-4.13.1
-## fi
+ echo "we download new stuff"
+# if [ $ITKVersion = ITK3 ]
+# then
+# # deal with ITK3
+# #EED itkfile=InsightToolkit-3.20.0.patchCreatis.tar.gz
+# #EED libname=InsightToolkit-3.20.0
+#
+# #EED itkfile=InsightToolkit-3.20.1.tar.gz
+# #EED libname=InsightToolkit-3.20.1
+#
+# itkfile=InsightToolkit-3.20.1-patchCreatis.tgz
+# libname=InsightToolkit-3.20.1-patchCreatis
+#
+# else
+# # deal with ITK4
+# itkfile=InsightToolkit-4.13.1.zip
+# libname=InsightToolkit-4.13.1
+# fi
itkfile=InsightToolkit-5.0.1.zip
libname=InsightToolkit-5.0.1
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
cmake -D CMAKE_BUILD_TYPE:STRING=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt
-
cmake -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt
-## if [ $ITKVersion = ITK3 ]
-## then
-## cmake -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
-## fi
-
-## if [ $ITKVersion = ITK4 ]
-## then
-
-## ##EED ITK4.0
-## # cmake -D ITKV3_COMPATIBILITY:BOOL=ON -D ITKGroup_Nonunit:BOOL=ON -D ITKGroup_IO:BOOL=ON -D Module_ITK-Deprecated:BOOL=ON -D Module_ITK-Review:BOOL=ON CMakeCache.txt
-##
-## ##EED ITK4.12
-## # -D ITK_USE_SYSTEM_GDCM=ON
-## cmake -D ITKV3_COMPATIBILITY:BOOL=ON -D Module_ITKReview:BOOL=ON CMakeCache.txt
-##
-## fi
-
- cmake -D Module_ITKReview:BOOL=ON CMakeCache.txt
- cmake -D ITKV4_COMPATIBILITY:BOOL=ON CMakeCache.txt
- cmake -D CMAKE_CXX_FLAGS:STRING=-std=${stdCompiler} CMakeCache.txt
+# if [ $ITKVersion = ITK3 ]
+# then
+# cmake -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
+# fi
+# if [ $ITKVersion = ITK4 ]
+# then
+###EED ITK4.0
+## cmake -D ITKV3_COMPATIBILITY:BOOL=ON -D ITKGroup_Nonunit:BOOL=ON -D ITKGroup_IO:BOOL=ON -D Module_ITK-Deprecated:BOOL=ON -D Module_ITK-Review:BOOL=ON CMakeCache.txt
+#
+###EED ITK4.12
+## -D ITK_USE_SYSTEM_GDCM=ON
+# cmake -D ITKV3_COMPATIBILITY:BOOL=ON -D Module_ITKReview:BOOL=ON CMakeCache.txt
+# fi
+
+ cmake -D Module_ITKReview:BOOL=ON CMakeCache.txt
+# cmake -D ITKV4_COMPATIBILITY:BOOL=ON CMakeCache.txt
+ cmake -D CMAKE_CXX_FLAGS:STRING=-std=${stdCompiler} CMakeCache.txt
#uncomment following line if you want to use the bleeding edge of GDCM2!
#cmake -D ITK_USE_SYSTEM_GDCM:BOOL=ON CMakeCache.txt