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
- Host: GitHub
- URL: https://github.com/benslabbert/mqtt-paho-cpp-cmake-demo
- Owner: BenSlabbert
- Created: 2019-08-15T13:17:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-15T13:21:42.000Z (almost 7 years ago)
- Last Synced: 2025-02-12T15:48:09.784Z (over 1 year ago)
- Topics: cmake, cpp, cpp11, docker, mqtt
- Language: C++
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)