set gdcm=gdcm
set vtk=VTK
-rmdir %binpath% /s /q
goto next
+rmdir %binpath% /s /q
+
rmdir %thirdpartyGeneration% /s /q
mkdir %thirdpartyGeneration%
cmake -G"Visual Studio 10 2008 Win64" -H%sourcepath%\%xercesc% -B%binpath%\%xercesc%Bin
cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%xercesc%\ CMakeCache.txt
-pause
-
rem ------------- itk --------------------
:next
-set
-pause
-
rem ------------- vtk --------------------
cd %binpath%
mkdir %vtk%Bin
cd %vtk%Bin
-cmake -G"Visual Studio 9 2008 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
-cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
+cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
+cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
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
cmake CMakeCache.txt
call %vcvarsall%