Building on Windows with VCPKG¶
Prerequisites¶
git
Visual Studio Community 2019
Note
Building instructions should might be executed from VS x64 native command prompt or Powershell
Warning
Install vcpkg to a folder where there are no whitespace in the folder path.
Warning
The english language package for Visual Studio needs to be installed.
Getting and bootstrapping vcpkg¶
Get vcpkg and bootstrap it:
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg.git
bootstrap-vcpkg.bat
vcpkg integrate install (run as Administrator on first run)
The last step is not necessary if you don’t use the VS IDE.
Install the dependencies¶
Install the necessary dependencies for blazert:
vcpkg install blaze:x64-windows
vcpkg install embree3:x64-windows
vcpkg install benchmark:x64-windows
Get and build blazeRT¶
Create a project (and/or build):
git clone https://github.com/cstatz/blazert.git
cd blazert
mkdir build && cd build
cmake -G "Visual Studio 16 2019 Win64" \
-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]\scripts\buildsystems\vcpkg.cmake \
-DBUILD_EXAMPLES:BOOL=true \
-DBLAZE_INCLUDE_OVERRIDE:STRING=[vcpkg root]\installed\x64-windows\include \
..
cmake --build .