2 echo -----------------------------------
3 echo ------Asking Architecture----------
4 echo -----------------------------------
5 if %PROCESSOR_ARCHITECTURE%==x86 (
6 set ProgramFilesPath_x86=%ProgramFiles%
7 echo "Architecture found = x86"
9 set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
10 echo "Architecture found = x64"
13 echo ----End Asking Architecture--------
16 set thirdpartylib_cmake=%1
17 set thirdpartylibpath=%2
19 set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
21 set sourcepath=%thirdpartylib_cmake%\crea_ThirdParty_Libraries
22 set binpath=%thirdpartylib_cmake%\crea_ThirdParty_Libraries_Bin
23 set installpath="C:\Temp\creatools\crea_ThirdParty_Libraries"
24 echo set installpath="ProgramFilesPath_x86\creatools\crea_ThirdParty_Libraries"
26 if not exist %vcvarsall% set zipPath="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
27 if not exist %vcvarsall% (
28 echo ERROR!!! Visual Studio has not been found in the system
36 cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath%
37 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt
38 cmake -D CREA_LIBRARY_SOURCE_PATH:PATH=%thirdpartylibpath% CMakeCache.txt
40 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
41 msbuild /p:Configuration=release INSTALL.vcxproj