vcpkg install detours rapidjson --triplet=x64-windows-static
CMake (or open the directory with Visual Studio and config it manually):
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="C:\...\vcpkg\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static
cmake --build . --config Release
You need to add -BUILD_SHARED_LIBS=OFF when calling cmake .. .
Also you need to add a preprocessor definition to your project: IB_INPUT_STATIC.
For the test you also need:
vcpkg install boost-test fmt
And add -DBUILD_TESTING=ON when calling cmake .. .