-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_dependencies.bat
More file actions
78 lines (70 loc) · 1.84 KB
/
Copy pathsetup_dependencies.bat
File metadata and controls
78 lines (70 loc) · 1.84 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
@echo off
echo Setting up MetaImGUI dependencies...
REM Create external directory
if not exist "external" mkdir external
REM Download and setup ImGui
if not exist "external\imgui" (
echo Downloading ImGui...
cd external
git clone https://github.com/ocornut/imgui.git
cd imgui
git checkout v1.92.4
cd ..\..
echo ImGui downloaded successfully
) else (
echo ImGui already exists
)
REM Download and setup Catch2 (for testing)
if not exist "external\catch2" (
echo Downloading Catch2...
cd external
git clone https://github.com/catchorg/Catch2.git catch2
cd catch2
git checkout v3.4.0
cd ..\..
echo Catch2 downloaded successfully
) else (
echo Catch2 already exists
)
REM Download and setup nlohmann/json (JSON library)
if not exist "external\json" (
echo Downloading nlohmann/json...
cd external
git clone https://github.com/nlohmann/json.git
cd json
git checkout v3.11.3
cd ..\..
echo nlohmann/json downloaded successfully
) else (
echo nlohmann/json already exists
)
REM Download and setup ImPlot
if not exist "external\implot" (
echo Downloading ImPlot...
cd external
git clone https://github.com/epezent/implot.git
cd implot
git checkout v0.17
cd ..\..
echo ImPlot downloaded successfully
) else (
echo ImPlot already exists
)
REM Create build directory
if not exist "build" mkdir build
REM Install pre-commit hook for automatic code formatting
echo.
echo Installing pre-commit hook...
if exist ".pre-commit-hook.sh" (
copy .pre-commit-hook.sh .git\hooks\pre-commit >nul
echo Pre-commit hook installed (automatic code formatting before commits)
) else (
echo Warning: Pre-commit hook script not found
)
echo.
echo Dependencies setup complete!
echo To build:
echo cd build
echo cmake ..
echo cmake --build . --config Release
pause