Build
on Windows requires Windows Vista or newer and Visual Studio 2010 or newer. Additionally, cmake
is required to generate Visual Studio project files.
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:
You can disable building the tests with:
微信
支付宝