1 set thirdpartyGeneration=%1
5 set QTDIR=C:\Qt\2010.05\qt
7 set wgetPath=%wgetPath%\..\..\windows\creaTools_win_installers\CreaTools_v2_0_0_win32_installer\bin
8 set zipPath="%ProgramFiles(x86)%\7-Zip"
9 set urlCreatisSource=http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source
10 set vcvarsall="%ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC"\vcvarsall.bat
12 set installpath=%thirdpartyGeneration%\thirdparty_install
13 set binpath=%thirdpartyGeneration%\thirdparty_bin
14 set sourcepath=%thirdpartyGeneration%\thirdparty_source
16 set xercesc=xerces-c-3.1.1
17 set itk=InsightToolkit-3.20.0
26 rmdir %thirdpartyGeneration% /s /q
27 mkdir %thirdpartyGeneration%
28 cd %thirdpartyGeneration%
29 mkdir thirdparty_source
31 mkdir thirdparty_install
35 rem ---------DOWNLOAD------------------
36 %wgetPath%\wget.exe %urlCreatisSource%/xerces-c-3.1.1.zip
37 %wgetPath%\wget.exe %urlCreatisSource%/InsightToolkit-3.20.0.tar.gz
38 %wgetPath%\wget.exe %urlCreatisSource%/gdcm_08_Dic_2009.tar.gz
39 %wgetPath%\wget.exe %urlCreatisSource%/vtk-5.6.1.tar.gz
40 %wgetPath%\wget.exe %urlCreatisSource%/wxWidgets-2.9.1.7z
42 rem ---------Extracting------------------
44 %zipPath%\7z.exe x xerces-c-3.1.1.zip
45 %zipPath%\7z.exe x InsightToolkit-3.20.0.tar.gz
46 %zipPath%\7z.exe x InsightToolkit-3.20.0.tar
47 %zipPath%\7z.exe x gdcm_08_Dic_2009.tar.gz
48 %zipPath%\7z.exe x gdcm_08_Dic_2009.tar
49 %zipPath%\7z.exe x vtk-5.6.1.tar.gz
50 %zipPath%\7z.exe x vtk-5.6.1.tar
53 %zipPath%\7z.exe x ..\wxWidgets-2.9.1.7z
56 rem ------------- xercesc --------------------
60 cmake -G"Visual Studio 10 2008 Win64" -H%sourcepath%\%xercesc% -B%binpath%\%xercesc%Bin
61 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%xercesc%\ CMakeCache.txt
67 rem ------------- itk --------------------
71 cmake -G"Visual Studio 9 2008 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin
72 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
73 cmake -D USE_DEBUG_LIB:BOOL=%buildType% CMakeCache.txt
76 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
77 FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%buildType% INSTALL.vcproj
85 rem ------------- vtk --------------------
89 cmake -G"Visual Studio 9 2008 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
90 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
91 cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt
94 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
95 FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%buildType% INSTALL.vcproj