An open API service indexing awesome lists of open source software.

https://github.com/benslabbert/mqtt-paho-cpp-cmake-demo

A repo which will hopefully help those starting out with C++ and CMake. This is a working example of setting up a simple C++ project with some external dependencies you need to manually install on your system
https://github.com/benslabbert/mqtt-paho-cpp-cmake-demo

cmake cpp cpp11 docker mqtt

Last synced: 3 months ago
JSON representation

A repo which will hopefully help those starting out with C++ and CMake. This is a working example of setting up a simple C++ project with some external dependencies you need to manually install on your system

Awesome Lists containing this project

README

          

# paho-mqtt-cpp-examples

## Build

See the `Dockerfile`
Run `docker build .` which will install all dependencies and build the 3 artifacts.
You can use `docker cp` to get them out of the container

## Dependencies

### [paho.mqtt.c](https://github.com/eclipse/paho.mqtt.c)

build with `-DPAHO_WITH_SSL=OFF` for a non-ssl build (there are dependencies on OpenSSL crypto libs)

### [paho.mqtt.cpp](https://github.com/eclipse/paho.mqtt.cpp)

depends on `paho.mqtt.c` build with `-DPAHO_WITH_SSL=OFF`

### [spdlog](https://github.com/gabime/spdlog)

build with `-DBUILD_TESTING=OFF` otherwise you will need the [benchmark](https://github.com/google/benchmark) dependency (I think it is this one)