# C++ SDK (/sdks/cpp)



The KubeMQ C++ SDK provides a high-performance, type-safe C++17 client for all messaging patterns. It requires C++17 (GCC 9+, Clang 9+, MSVC 2019+), CMake 3.16+, gRPC v1.78+, and Protobuf v5.29+.

## Installation [#installation]

### vcpkg (Recommended) [#vcpkg-recommended]

```bash
vcpkg install grpc protobuf nlohmann-json

cmake -B build -S . \
    -DCMAKE_TOOLCHAIN_FILE=[vcpkg-root]/scripts/buildsystems/vcpkg.cmake
cmake --build build --parallel
```

### CMake FetchContent [#cmake-fetchcontent]

```cmake title="CMakeLists.txt"
include(FetchContent)
FetchContent_Declare(
    kubemq-cpp
    GIT_REPOSITORY https://github.com/kubemq-io/kubemq-cpp.git
    GIT_TAG v1.0.0
)
FetchContent_MakeAvailable(kubemq-cpp)

target_link_libraries(your_app PRIVATE kubemq_static)
```

## Next: send your first message [#next-send-your-first-message]

With the SDK installed, continue to the [first-message tutorial](/sdks/cpp/tutorials/first-message) to connect a client and publish and receive your first message.
