-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmake.bat
55 lines (41 loc) · 1.1 KB
/
make.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
45
46
47
48
49
50
51
52
53
54
@echo off
set OSG_DIR=c:\OpenSceneGraph-2.8.2
set Qwt5_INCLUDE_DIR=c:\qwt-5.2.0\include
set Qwt5_Qt4_LIBRARY_DIR=c:\qwt-5.2.0\lib
if "%1"=="vs" goto VS
if "%1" == "debug" goto DEBUG
if "%1" == "clean" goto CLEAN
goto NMAKE
:NMAKE
set BDIR=build
if EXIST %BDIR% rmdir /s /q %BDIR%
mkdir %BDIR%
cd %BDIR%
cmake -G"NMake Makefiles" .. -DTESTING:BOOL=FALSE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%CD% -DOSG_DIR:PATH=%OSG_DIR%
nmake
nmake package
GOTO FINISH
:DEBUG
set BDIR=build.debug
if EXIST %BDIR% rmdir /s /q %BDIR%
mkdir %BDIR%
cd %BDIR%
cmake -G"NMake Makefiles" .. -DTESTING:BOOL=FALSE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=%CD% -DOSG_DIR:PATH=%OSG_DIR%
nmake
nmake package
GOTO FINISH
:VS
set BDIR=build.vs
if EXIST %BDIR% rmdir /s /q %BDIR%
mkdir %BDIR%
cd %BDIR%
cmake -G"Visual Studio 9 2008" .. -DTESTING:BOOL=FALSE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=%CD% -DOSG_DIR:PATH=%OSG_DIR%
start VisualizePhysics-Wave.sln
cd ..
GOTO FINISH
:CLEAN
if EXIST build rmdir /s build
if EXIST build.debug rmdir /s build.debug
if EXIST build.vs rmdir /s build.vs
:FINISH
echo Done.