build: add vcpkg instructions for windows
This commit is contained in:
parent
d6c888bee9
commit
282f9cc241
19
README.md
19
README.md
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue