forked from rbei-etas/busmaster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
44 lines (33 loc) · 952 Bytes
/
build.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
34
35
36
37
38
39
40
41
42
43
44
@echo off
:DOTNET_SEARCH
set DOTNET=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319
if exist "%DOTNET%\MSBuild.exe" goto DOTNET_FOUND
set DOTNET=%SystemRoot%\Microsoft.NET\Framework\v3.5
if exist "%DOTNET%\MSBuild.exe" goto DOTNET_FOUND
:DOTNET_NOT_FOUND
echo .NET Framework not found. Build failed!
goto END
:DOTNET_FOUND
echo Using MSBuild found in %DOTNET%
:CMAKE_SEARCH
set CMAKE=%ProgramFiles%\CMake\bin
if exist "%CMAKE%\cmake.exe" goto CMAKE_FOUND
:CMAKE_NOT_FOUND
echo CMake not found. Build failed!
goto END
:CMAKE_FOUND
echo Using CMake found in %CMAKE%
:BUILD
set PATH=%CMAKE%;%DOTNET%;%PATH%
REM define your build directory here:
mkdir build
cd build
REM define your compiler/IDE here:
REM cmake -G "Visual Studio 10 2010" ..
cmake -G "Visual Studio 11 2012" -T "v110_xp" ..
REM cmake -G "Visual Studio 12 2013" ..
REM automatically compile solution:
MSBuild "BUSMASTER.sln" /property:Configuration=Release
:END
REM pause
exit 0