diff options
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" |
