-mkdir %2
-cd %2
-cmake -G"Visual Studio 9 2008" -H%currentdir%%1 -B%currentdir%%2
-cmake -D INCLUDE_CTEST:BOOL=ON CMakeCache.txt
+set dirInstall=%currentdir%/tmpCreaTools_INSTALL/%1%
+
+mkdir %1Bin
+cd %1Bin
+cmake -G"Visual Studio 9 2008" -H%currentdir%%1 -B%currentdir%%1Bin
+cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%dirInstall% CMakeCache.txt