build: add vcpkg instructions for windows

This commit is contained in:
Eric Wasylishen 2021-08-22 13:29:04 -06:00
parent d6c888bee9
commit 282f9cc241
1 changed files with 18 additions and 1 deletions

View File

@ -55,7 +55,24 @@ cmake ..
### Windows
TODO: updated instructions
Example using vcpkg (32-bit build):
```
git clone --recursive https://github.com/ericwa/ericw-tools
cd ericw-tools
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.bat
# NOTE: vcpkg builds for 32-bit by default
# NOTE: takes 30+ minutes
.\vcpkg\vcpkg install embree3
mkdir build
cd build
# PowerShell syntax for getting current directory -
# otherwise, replace with absolute path to "vcpkg/scripts/buildsystems/vcpkg.cmake"
cmake .. -DCMAKE_TOOLCHAIN_FILE="$(pwd)/../vcpkg/scripts/buildsystems/vcpkg.cmake" -DCMAKE_GENERATOR_PLATFORM=Win32
```
### macOS 10.15