-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdo-cmake.bat
More file actions
executable file
·50 lines (40 loc) · 873 Bytes
/
do-cmake.bat
File metadata and controls
executable file
·50 lines (40 loc) · 873 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
38
39
40
41
42
43
44
45
46
47
48
49
50
@echo off
REM Wrapper script around cmake commands
goto :init
:usage
echo Usage: .\%~n0%~x0 [build] [install] [clean] [distclean]
echo build : Build or rebuild lagscope binary
echo install : Copy lagscope binary to install folder
echo clean : make clean
echo distclean : Remove build folder
goto :end
:init
set args=0
for %%x in (%*) do set /a args+=1
if "%args%" neq "1" goto :usage
set returndir=%cd%
if "%1"=="build" goto :build
if "%1"=="install" goto :install
if "%1"=="clean" goto :clean
if "%1"=="distclean" goto :distclean
goto :usage
:build
mkdir build
cd build
cmake ../src
cmake --build . --config Release
goto :end
:install
set returndir=%cd%
cd build
cmake --build . --target install
goto :end
:clean
set returndir=%cd%
cd build
cmake --build . --target clean
goto :end
:distclean
rd /s /q build
:end
cd %returndir%