Git Product home page Git Product logo

building-mongo-cxx-driver-using-cmake's Introduction

Building mongo cxx driver using cmake

An example of how to compile a shared MongoDB cxx driver using CMake. Currently, the solution is only for Windows. After successful build drivers will be available in a drivers directory and mini-test program for driver testing in an install directory.

Steps how to build drivers and test it

  1. Download boost c++ 1.70 libraries and unzip to "C:/boost_1_70_0"

  2. Create a build folder:

mkdir build && cd build
  1. Generate project configuration files for Windows 64
cmake -G "Visual Studio 15 2017 Win64" .. # "-DCMAKE_BUILD_TYPE=Release" 
  1. Build MongoDB C++ drivers:
cmake --build . # --config Release

After successfully build drivers will be in a drivers directory!

  1. Additional, build and install test program executes:
cmake --build . --target install
  1. Run the test program:
../install/test_mongocxx.exe

Source

building-mongo-cxx-driver-using-cmake's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.