Let’s start by generating Visual Studio project files for libbson. The following assumes we are compiling for 64-bit Windows using Visual Studio 2010 Express which can be freely downloaded from Microsoft.

You should now see libbson installed in C:\libbson.
By default, this will create a debug build of libbson. To enable release build additional argument needs to be provided to both cmake and msbuild.exe: