title: Detecting Qt5 with CMake
body: <p>I am trying to install and use Qt 5 on Ubuntu. Running CMake for my project which requires Qt 5 leads to:</p>
  
  <pre><code>-- The C compiler identification is GNU 4.8.4
  -- The CXX compiler identification is GNU 4.8.4
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Warning at /usr/local/share/cmake-3.2/Modules/FindQt4.cmake:626 (message):
    /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
    QtCore could not be found there.  Qt is NOT installed correctly for the
    target build environment.
  </code></pre>
  
  <p>I attempted hints from </p>
  
  <p><a href="https://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04">https://askubuntu.com/questions/508503/whats-the-development-package-for-qt5-in-14-04</a></p>
  
  <p><a href="https://www.kdab.com/using-cmake-with-qt-5/" rel="nofollow noreferrer">https://www.kdab.com/using-cmake-with-qt-5/</a></p>
  
  <p>How to find and use Qt 5 with CMake?</p>