eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
315 stars 178 forks source link

Switch to cmake as build tool #131

Closed S3ler closed 6 years ago

S3ler commented 6 years ago

Hi,

like already mention in #124 I can write a cmake file.

I offer you an adapted CMakeLists.txt-file which i wrote for myself to include the MQTTSNGatewy in my projects. So each of you who wants to use cmake can use it. I provides exactly the same functionality and variable-naming like the current version of the MQTTSNGateway's Makefile.

Usage:

Copy it into paho.mqtt-sn.embedded-c/MQTTSNGateway.

cmake -G"Unix Makefiles"
make
make install

Output is the same (binaries and config-files are next to paho.mqtt-sn.embedded-c git location).

I just wanted to share my work with you, to decrease your work :) . If you really want to switch to cmake, let me know i create a pull-request then.

ty4tw commented 6 years ago

Hi, Thank you for your proposal. When it will be needed, I will ask a favor of you. Thank you for your cooperation again.