- Write a CMake module for finding and importing the Paho MQTT C library.
- Prepare the build system for exporting targets
Signed-off-by: David Wagner <david.wagner@easymile.com>
Replace the LANGUAGES directive, from the project() command, by
the enable_language() command.
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
The project is already built with support for the SSL. This change
provides an option to turn on and off this feature.
---------------------------------------------------------------------
Build instructions
---------------------------------------------------------------------
On Unix or GNU Linux, build out of tree passing the Paho MQTT C
directory and the OpenSSL support flag:
$ mkdir build
$ cd build
$ cmake -DPAHO_MQTT_C_PATH=/tmp/paho-c -DPAHO_WITH_SSL=ON ..
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
CMake is an open-source, cross-platform tool designed to build, test
and package software. CMake controls the software compilation using
simple platform and compiler independent configuration files, and
generate native makefiles and workspaces that can be used in compiler
environments like Windows, Mac OS, BSD and Linux.
---------------------------------------------------------------------
Build instructions
---------------------------------------------------------------------
On Unix or GNU Linux, build out of tree passing the Paho MQTT C
directory:
$ mkdir build
$ cd build
$ cmake -DPAHO_MQTT_C_PATH=/tmp/paho-c ..
On Windows, open the CMake GUI and "configure" the Visual Studio
build. On the GUI interface, set the PAHO_MQTT_C_PATH and "generate"
the build files.
---------------------------------------------------------------------
Remarks
---------------------------------------------------------------------
Successfully built on with C++11 restriction:
- Windows 7 SP1 (64-bit) with Visual Studio/C++ 14 (2015);
- Fedora 23.10 (64-bit) with g++ 5.3.1, libc 2.22 and libstdc++ 6.0.21;
- Fedora 23.10 (64-bit) with clang++ 3.7.0, libc 2.22 and libstdc++ 6.0.21;
- FreeBSD 10.3 (64-bit) with clang++ 3.4.1;
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>