-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.bat
More file actions
37 lines (30 loc) · 915 Bytes
/
Copy pathmake.bat
File metadata and controls
37 lines (30 loc) · 915 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
set PROJECT_DIR=_project
set INSTALL_DIR=_bin
if "%~1"=="" goto BLANK
if "%~1"=="debug" goto DEBUG
if "%~1"=="release" goto RELEASE
if "%~1"=="install" goto INSTALL
if "%~1"=="clean" goto CLEAN
@ECHO ON
:BLANK
cmake -H. -B %PROJECT_DIR% -A "x64" -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
GOTO DONE
:DEBUG
cmake -H. -B %PROJECT_DIR% -A "x64" -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
cmake --build %PROJECT_DIR% --config Debug --target install
GOTO DONE
:RELEASE
cmake -H. -B %PROJECT_DIR% -A "x64" -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
cmake --build %PROJECT_DIR% --config Release --target install
GOTO DONE
:INSTALL
cmake -H. -B %PROJECT_DIR% -A "x64" -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR%
cmake --build %PROJECT_DIR% --config Debug --target install
cmake --build %PROJECT_DIR% --config Release --target install
GOTO DONE
:CLEAN
rmdir /Q /S %PROJECT_DIR% 2>NUL
rmdir /Q /S %INSTALL_DIR% 2>NUL
GOTO DONE
:DONE