mkdir %2
cd %2
cmake -G"Visual Studio 9 2008" -H%currentdir%%1 -B%currentdir%%2
-cmake -D INCLUDE_CTEST:BOOL=ON CMakeCache.txt
+cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%currentdir%/tmpINSTALL CMakeCache.txt
cd ..
cd %2
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1
-FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 /t:Install
-FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 /t:Package
+FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 /t:INSTALL
+FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 /t:PACKAGE
cd ..