diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-09-26 12:23:19 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-09-26 12:23:19 +0200 |
| commit | e4a0432383331e013808a97b7c24707e4ddc4726 (patch) | |
| tree | 3ef4465be03bc7b92a0b048f02f76475045404b6 /scripts/install_deps_windows_vcpkg.ps1 | |
| parent | 105732dde10b317a81d5a10a3f66b315d6f85015 (diff) | |
| download | srdwm-e4a0432383331e013808a97b7c24707e4ddc4726.tar.gz srdwm-e4a0432383331e013808a97b7c24707e4ddc4726.zip | |
Initial Commit
Diffstat (limited to 'scripts/install_deps_windows_vcpkg.ps1')
| -rw-r--r-- | scripts/install_deps_windows_vcpkg.ps1 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/install_deps_windows_vcpkg.ps1 b/scripts/install_deps_windows_vcpkg.ps1 new file mode 100644 index 0000000..40b6c06 --- /dev/null +++ b/scripts/install_deps_windows_vcpkg.ps1 @@ -0,0 +1,21 @@ +Param( + [string]$VcpkgDir = "$PSScriptRoot\..\..\vcpkg" +) + +$ErrorActionPreference = "Stop" + +if (!(Test-Path $VcpkgDir)) { + git clone https://github.com/microsoft/vcpkg.git $VcpkgDir +} + +Push-Location $VcpkgDir +try { + .\bootstrap-vcpkg.bat + .\vcpkg.exe integrate install + .\vcpkg.exe install lua:x64-windows +} +finally { + Pop-Location +} + +Write-Host "Dependencies installed via vcpkg. Use CMake with -DCMAKE_TOOLCHAIN_FILE=$VcpkgDir\scripts\buildsystems\vcpkg.cmake" |
