X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Install_ThirdParty%2Fscripts%2Finstall_thirdparty_libraries_cmake.bat;h=2f5f5b45ef590814bb44e5a5ad5cea1aeee925c1;hb=11c30fbd126b4a4c79ad39bb9ab2d5c22f6badbc;hp=63436005600c5a686f4feb8823fe587447d1875f;hpb=0613d094f03ceaa9e5982f0ad11e1c7d9a064baa;p=creaToolsTools.git diff --git a/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat b/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat index 6343600..2f5f5b4 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_libraries_cmake.bat @@ -53,15 +53,19 @@ mkdir %binpath% cd %binpath% if %x86Comp%==ON ( + set buildPlatform=win32 cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath% ) else ( if %PROCESSOR_ARCHITECTURE%==x86 ( + set buildPlatform=win32 cmake -G"Visual Studio 10" -H%sourcepath% -B%binpath% ) else ( + set buildPlatform=win64 cmake -G"Visual Studio 10 Win64" -H%sourcepath% -B%binpath% ) ) +cmake -D CREATOOLS_BUILDTYPE:STRING=%buildType% -D CREATOOLS_PLATFORM:STRING=%buildPlatform% CMakeCache.txt cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath% CMakeCache.txt cmake -D CREA_LIBRARY_SOURCE_PATH:PATH=%thirdpartylibpath% CMakeCache.txt cmake CMakeCache.txt