2015-08-14 00:50:13 +08:00
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
REM Configure step
|
|
|
|
if "%ARCH%"=="32" (
|
|
|
|
set CMAKE_GENERATOR=Visual Studio 12 2013
|
|
|
|
) else (
|
|
|
|
set CMAKE_GENERATOR=Visual Studio 12 2013 Win64
|
|
|
|
)
|
|
|
|
set CMAKE_GENERATOR_TOOLSET=v120_xp
|
2015-08-14 22:56:46 +08:00
|
|
|
cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%PREFIX% -DOPENSSL_ROOT_DIR=%PREFIX%\Library -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_PREFIX_PATH=$PREFIX %SRC_DIR%
|
2015-08-14 00:50:13 +08:00
|
|
|
if errorlevel 1 exit 1
|
|
|
|
REM Build step
|
|
|
|
cmake --build .
|
|
|
|
if errorlevel 1 exit 1
|
|
|
|
REM Install step
|
|
|
|
cmake --build . --target install
|
|
|
|
if errorlevel 1 exit 1
|