-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCreateModelCatalog.bat.in
42 lines (30 loc) · 1.26 KB
/
CreateModelCatalog.bat.in
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
@ECHO off
ECHO Build PlusModelCatalog...
rem IS_MAKE_PROGRAM_MSBUILD?
if ${IS_MAKE_PROGRAM_MSBUILD}==TRUE goto MakeUsingMsBuild
rem ---------------- msdev -----------------------
:msdev
ECHO Clear old files to force rebuild of model catalog
"${CMAKE_MAKE_PROGRAM}" PlusModelCatalog.sln /clean Release /project ALL_BUILD 1> CreateModelCatalog.log 2>&1
IF ERRORLEVEL 1 GOTO fail
ECHO Generating model catalog
"${CMAKE_MAKE_PROGRAM}" PlusModelCatalog.sln /build Release /project ALL_BUILD 1>> CreateModelCatalog.log 2>&1
IF ERRORLEVEL 1 GOTO fail
goto success
rem ---------------- msbuild -----------------------
:MakeUsingMsBuild
ECHO Clear old files to force rebuild of model catalog
"${CMAKE_MAKE_PROGRAM}" ALL_BUILD.vcxproj /p:Configuration=Release /target:clean 1> CreateModelCatalog.log 2>&1
IF ERRORLEVEL 1 GOTO fail
ECHO Generating model catalog
"${CMAKE_MAKE_PROGRAM}" ALL_BUILD.vcxproj /p:Configuration=Release /target:rebuild 1>> CreateModelCatalog.log 2>&1
IF ERRORLEVEL 1 GOTO fail
goto success
rem ---------------------------------------
:success
ECHO PlusModelCatalog is available at: ${CMAKE_CURRENT_BINARY_DIR}/html
exit /b 0
:fail
ECHO Failed to generate PlusModelCatalog:
type CreateModelCatalog.log
exit /b 1