-
Notifications
You must be signed in to change notification settings - Fork 0
/
msvc_build_tests.bat
33 lines (25 loc) · 1.32 KB
/
msvc_build_tests.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
REM This Source Code Form is subject to the terms of the Mozilla Public
REM License, v. 2.0. If a copy of the MPL was not distributed with this
REM file, You can obtain one at https://mozilla.org/MPL/2.0/.
set build_dir=build\msvc
REM Example of how to use an earlier version of MSVC than the default:
REM cmake --help (will show the available Generators you can use)
REM cmake -S. -B.\%build_dir% -DTEST_HURCHALLA_FACTORINGS=ON -G "Visual Studio 15"
REM the above line appears to build x86-32. To get x64:
REM cmake -S. -B.\%build_dir% -DTEST_HURCHALLA_FACTORING=ON -G "Visual Studio 15 2017 Win64"
REM for Visual Studio 2019 and above, set the architecture with -A, for example:
REM -G "Visual Studio 16 2019" -A Win32
REM -G "Visual Studio 16 2019" -A x64
REM -G "Visual Studio 16 2019" -A ARM
REM -G "Visual Studio 16 2019" -A ARM64
cmake -S. -B.\%build_dir% -DTEST_HURCHALLA_FACTORING=ON -G "Visual Studio 16 2019" -A Win32
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --build .\%build_dir% --config Release
if %errorlevel% neq 0 exit /b %errorlevel%
cmake --build .\%build_dir% --config Debug
if %errorlevel% neq 0 exit /b %errorlevel%
%build_dir%\Release\test_hurchalla_factoring.exe
if %errorlevel% neq 0 exit /b %errorlevel%
%build_dir%\Debug\test_hurchalla_factoring.exe
if %errorlevel% neq 0 exit /b %errorlevel%