X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Install_ThirdParty%2Fscripts%2Finstall_thirdparty_dlls_cmake.bat;h=2e791bfd03c414963e46751a714e309c4e9f7ec7;hb=67a0a4de0e7d0b76e4bd6e1727da7802bb77fcf7;hp=aa2f07b95779b46740ef65a0e7427df21d53e1eb;hpb=4a364787d3f71bd8010767cd1b7ec3befda665f4;p=creaToolsTools.git diff --git a/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat b/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat index aa2f07b..2e791bf 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_dlls_cmake.bat @@ -37,17 +37,26 @@ if not exist %vcvarsall% ( exit ) -call %vcvarsall% +if %PROCESSOR_ARCHITECTURE%==x86 ( + call %vcvarsall% +) else ( + call %vcvarsall% amd64 +) mkdir %binpath% cd %binpath% -cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath% +if %PROCESSOR_ARCHITECTURE%==x86 ( + cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath% +) else ( + cmake -G"Visual Studio 10 Win64" -H%sourcepath% -B%binpath% +) + cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt cmake -D CREA_LIBRARY_DLL_PATH:PATH=%thirdpartydllspath% CMakeCache.txt cmake CMakeCache.txt -FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType% -msbuild /p:Configuration=release PACKAGE.vcxproj +FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% +msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% PACKAGE.vcxproj set installerPath="%thirdpartydllspath%\thirdparty_bin\crea_ThirdParty_dlls_Bin\crea_ThirdParty_dlls-%version%.exe"