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
27 rmdir %thirdpartyGeneration% /s /q
28 mkdir %thirdpartyGeneration%
29 cd %thirdpartyGeneration%
30 mkdir thirdparty_source
32 mkdir thirdparty_install
36 rem ---------DOWNLOAD------------------
37 %wgetPath%\wget.exe %urlCreatisSource%/xerces-c-3.1.1.zip
38 %wgetPath%\wget.exe %urlCreatisSource%/InsightToolkit-3.20.0.tar.gz
39 %wgetPath%\wget.exe %urlCreatisSource%/gdcm_08_Dic_2009.tar.gz
40 %wgetPath%\wget.exe %urlCreatisSource%/vtk-5.6.1.tar.gz
41 %wgetPath%\wget.exe %urlCreatisSource%/wxWidgets-2.9.1.7z
43 rem ---------Extracting------------------
45 %zipPath%\7z.exe x xerces-c-3.1.1.zip
46 %zipPath%\7z.exe x InsightToolkit-3.20.0.tar.gz
47 %zipPath%\7z.exe x InsightToolkit-3.20.0.tar
48 %zipPath%\7z.exe x gdcm_08_Dic_2009.tar.gz
49 %zipPath%\7z.exe x gdcm_08_Dic_2009.tar
50 %zipPath%\7z.exe x vtk-5.6.1.tar.gz
51 %zipPath%\7z.exe x vtk-5.6.1.tar
54 %zipPath%\7z.exe x ..\wxWidgets-2.9.1.7z
60 rem ------------- vtk --------------------
64 cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
65 cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
66 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
69 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
70 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
74 rem ------------- itk --------------------
78 cmake -G"Visual Studio 9 2008 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin
79 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
80 cmake -D USE_DEBUG_LIB:BOOL=%buildType% CMakeCache.txt
83 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
84 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
92 rem ------------- xercesc --------------------
93 cd %sourcepath%\%xercesc%
95 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
96 REM msbuild /p:Configuration=%buildType% INSTALL.vcxproj