forked from PlusToolkit/PlusApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreatePackage.bat.in
More file actions
37 lines (29 loc) · 875 Bytes
/
CreatePackage.bat.in
File metadata and controls
37 lines (29 loc) · 875 Bytes
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
@ECHO off
REM Hide all your directories from users
REM Return code is 0 on success and >0 if something failed
SET RETURN_CODE=0
REM First we need to build a Release version
"${CMAKE_MAKE_PROGRAM}" ALL_BUILD.vcxproj /p:Configuration=Release /target:build
IF ERRORLEVEL 1 GOTO BUILDFAILED
:BUILDDOCUMENTATION
REM Build documentation
IF ${BUILD_DOCUMENTATION}==OFF GOTO PACKAGE
call CreateUserManual.bat
IF ERRORLEVEL 1 GOTO BUILDFAILED
ECHO User manual generation DONE
:PACKAGE
REM Build the package
"${CMAKE_CPACK_COMMAND}" --config ./CPackConfig.cmake
IF ERRORLEVEL 1 GOTO PACKAGINGFAILED
ECHO Packaging DONE
:SUCCESS
ECHO Package generation is successfully completed.
exit /b 0
:BUILDFAILED
ECHO ERROR: Build failed...
timeout /t 30
exit /b 1
:PACKAGINGFAILED
ECHO ERROR: Package generation failed...
timeout /t 30
exit /b 2