]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install-ITK.sh
#3446 vtk8itk5wx3-macos in Linux
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-ITK.sh
index ebb66383d13752271206c3bd4085370e7e8d3aa0..b35b8bfe30742aa9a44e1b84964fb9e36ca25c39 100644 (file)
    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 "------"
@@ -119,23 +116,24 @@ fi
   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
@@ -176,28 +174,24 @@ then
   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