-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.bat
42 lines (32 loc) · 1018 Bytes
/
setup.bat
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
:: Install any git submodules
git submodule update --init --recursive
:: Add vcpkg to PATH
set VCPKG_ROOT=%CD%\dependencies\vcpkg
setx VCPKG_ROOT %CD%\dependencies\vcpkg
set PATH=%PATH%;%VCPKG_ROOT%
setx PATH %PATH%:%VCPKG_ROOT%
:: Bootstrap vcpkg
call %VCPKG_ROOT%\bootstrap-vcpkg.bat
echo "VCPKG_ROOT is set to %VCPKG_ROOT%"
echo "PATH was updated to include vcpkg"
echo "\n-------------------------------------"
:: Verify VCPKR_ROOT exists and is included in PATH
vcpkg version
echo "\n-------------------------------------"
:: Create vcpkg.json file if it does not exist
if not exist %CD%\vcpkg.json (
echo "No vcpkg.json file found. Creating one now..."
vcpkg new --application
echo "Adding dependencies..."
vcpkg add port glew
vcpkg add port glfw3
vcpkg add port opengl
vcpkg add port glm
vcpkg add port pkgconf
echo "Installing dependencies..."
vcpkg install --triplet x64-windows
) else (
echo "The file does not exist."
)
echo "Setup Complete!"