From 282f9cc24193f9f18ca97ab345ea22a2a639671a Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 22 Aug 2021 13:29:04 -0600 Subject: [PATCH] build: add vcpkg instructions for windows --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f894a668..e33b8b68 100644 --- a/README.md +++ b/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