Commit Graph

14 Commits

Author SHA1 Message Date
David Wagner
d16b94c646 cmake: modernize the build system
- 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>
2018-04-23 17:29:09 +02:00
fmp
4b4d1e1223 Merge branch 'master' of https://github.com/jcourtat/paho.mqtt.cpp into jcourtat-master 2018-04-16 08:12:04 -04:00
David Wagner
09c14e89c6 cmake: Use option() instead of set(CACHE) for boolean build options
Signed-off-by: David Wagner <david.wagner@easymile.com>
2018-04-13 10:42:11 +02:00
Julien Courtat
632d52fe1a src: set destination library to ${CMAKE_INSTALL_LIBDIR}
This is already the case in the paho-c library project.

Signed-off-by: Julien Courtat <julien.courtat@aqsacom.com>
2017-10-11 16:05:36 +02:00
Frank Pagliughi
16573488fa Updated library version to 1.0.0 2017-07-22 19:13:17 -04:00
Frank Pagliughi
a9b1de862d Updated CMake build files. Now shared build is optional, and defaults to only static build for Win32. 2017-07-22 18:28:45 -04:00
Frank Pagliughi
2febb9ba6b Restored Guilherme's original appveyor.yml
Commented CMake files
2017-07-22 14:02:33 -04:00
Frank Pagliughi
be2db5f491 Updated to v0.9 in preparation for final tests before release 2017-05-15 08:52:00 -04:00
Frank Pagliughi
b8913b09d3 Issue #70 and PR #89. Restored the CMake requirement to v3.1 2017-05-14 23:37:09 -04:00
fmp
a5dbb7a770 Issue #93, Removed conditional compilation for SSL. Builds now default to SSL unless explicitly turned off. 2017-05-01 16:29:43 -04:00
fmp
8ba21d383b Added conditional build of SSL components to the GNU make files (lib, unit tests, and samples)
Changed the library version to 0.5.0. Added PATCH number to GNU Make and CMake builds.
2017-04-13 20:07:13 -04:00
Guilherme Maciel Ferreira
ebacf0eb0d Reduce required CMake version from 3.1 to 2.8.12
Replace the LANGUAGES directive, from the project() command, by
the enable_language() command.

Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
2017-04-06 13:12:28 -05:00
Guilherme Maciel Ferreira
178692e285 Add SSL option to the build system
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>
2017-04-03 16:34:54 -05:00
Guilherme Maciel Ferreira
5bd965791e Add support for the CMake build system
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>
2017-04-03 12:30:32 -05:00