| 1 |
@REM Copyright (c) Microsoft. All rights reserved. |
| 2 |
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
setlocal |
| 5 |
|
| 6 |
set build-root=%~dp0.. |
| 7 |
rem // resolve to fully qualified path |
| 8 |
for %%i in ("%build-root%") do set build-root=%%~fi |
| 9 |
|
| 10 |
REM -- C -- |
| 11 |
cd %build-root% |
| 12 |
|
| 13 |
mkdir %build-root%\cmake |
| 14 |
pushd %build-root%\cmake |
| 15 |
if not ERRORLEVEL==0 exit /b ERRORLEVEL |
| 16 |
|
| 17 |
cmake .. -Drun_unittests:bool=ON |
| 18 |
if not ERRORLEVEL==0 exit /b ERRORLEVEL |
| 19 |
|
| 20 |
msbuild /m ctest.sln /p:Configuration=Release |
| 21 |
if not ERRORLEVEL==0 exit /b ERRORLEVEL |
| 22 |
msbuild /m ctest.sln /p:Configuration=Debug |
| 23 |
if not ERRORLEVEL==0 exit /b ERRORLEVEL |
| 24 |
|
| 25 |
ctest -C "debug" -V |
| 26 |
if not ERRORLEVEL==0 exit /b ERRORLEVEL |
| 27 |
|
| 28 |
popd |