|
I have never used the CMake GUI, bot having ran CMake I can successfully load the Solutions file into Visual Studio (2015) and compile it from there, or using the following script:
Oh, the BSON_ROOT_DIR is a mongoc variable, not libbson.
CMAKE="/cygdrive/c/cmake/bin/cmake"
|
MSBUILD="/cygdrive/c/Program Files (x86)/MSBuild/14.0/Bin/MSBuild.exe"
|
GENERATOR="Visual Studio 14 2015 Win64"
|
|
cd ~/mongoc/src/libbson
|
"$CMAKE" -G "$GENERATOR" "-DCMAKE_INSTALL_PREFIX=C:/mongoc"
|
"$MSBUILD" /m ALL_BUILD.vcxproj
|
"$MSBUILD" /m INSTALL.vcxproj
|
cd ../..
|
"$CMAKE" -G "$GENERATOR" "-DCMAKE_INSTALL_PREFIX=C:/mongoc" "-DBSON_ROOT_DIR=C:/mongoc"
|
"$MSBUILD" /m ALL_BUILD.vcxproj
|
"$MSBUILD" /m INSTALL.vcxproj
|
|