Full Installation of the C++ SDK

      +
      Installation instructions for the Couchbase C++ Client.

      This page gives full installation instructions for the C++ SDK. In most cases, the Quickstart Guide should be enough to get you up and running if you’re in a hurry.

      Prerequisites

      A C++ 17 compiler and CMake version 3.19 or newer is required. See the Compatibility section for details on supported platforms.

      Installing the SDK

      With CPM.cmake

      CPM.cmake makes it really easy to include the library in your project. You only need to include the following command in your CMakeLists.txt.

      CPMAddPackage(
        NAME
        couchbase_cxx_client
        GIT_TAG
        1.0.1
        VERSION
        1.0.1
        GITHUB_REPOSITORY
        "couchbase/couchbase-cxx-client"
        OPTIONS
        "COUCHBASE_CXX_CLIENT_STATIC_BORINGSSL ON")

      Building from source

      Full instructions to build the SDK from source are given in the README of our GitHub repository.