title: Compiling C++ Paho MQTT code gives error "Could not find Paho MQTT C library"
body: <p>I'm using Ubuntu 16.04, I cloned the c library at <code>~/Paho_MQTT/paho_c</code> and ran following commands in <code>paho.mqtt.c</code> folder,</p>
  
  <pre><code>sudo apt-get install build-essential gcc make cmake cmake-gui cmake-curses-gui
  sudo apt-get install fakeroot fakeroot devscripts dh-make lsb-release
  sudo apt-get install libssl-dev
  sudo apt-get install doxygen graphviz
  mkdir build
  cd build
  ccmake ..
  make
  sudo make install
  </code></pre>
  
  <p>All goes well.</p>
  
  <p>Then I cloned c++ code at <code>~/Paho_MQTT/paho_cpp</code>, and ran following commands in the <code>paho.mqtt.cpp</code> folder,</p>
  
  <pre><code>mkdir build
  cd build
  cmake -DPAHO_MQTT_C_PATH=~/Paho_MQTT/paho_c/paho.mqtt.c ..
  </code></pre>
  
  <p>Here I get error, "Could not find Paho MQTT C library",
  Can you please suggest any solution ?</p>