title: How to link QtMain in CMake with Qt5?
body: <p>I upgraded my project code from Qt4 to Qt5. It uses CMake.
  The conversion got well except for one line of Cmake commands related to Qt.
  I can’t find in current documentation, like </p>
  
  <ul>
  <li><a href="http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html" rel="noreferrer">http://qt-project.org/doc/qt-5.0/qtdoc/cmake-manual.html</a> </li>
  <li><a href="http://qt-project.org/doc/qt-5.0/qtdoc/qtmain.html" rel="noreferrer">http://qt-project.org/doc/qt-5.0/qtdoc/qtmain.html</a></li>
  </ul>
  
  <p><strong>How to link with QtMain from CMake (with Qt5)?</strong></p>
  
  <p>It is the only missing bit to convert my project.
  Can someone point me to a doc explaining this or explain how to do it with Qt5? My Qt4 code worked correctly but I can't find the Cmake macro for Qt5.</p>
  
  <p>EDIT> Here is the CMake file I have at the moment: <a href="https://bitbucket.org/klaim/aos_qt5/src/593c195c4c6889f6968d68fca018ef425783a063/tools/aosdesigner/CMakeLists.txt?at=wip_qt5" rel="noreferrer">https://bitbucket.org/klaim/aos_qt5/src/593c195c4c6889f6968d68fca018ef425783a063/tools/aosdesigner/CMakeLists.txt?at=wip_qt5</a></p>
  
  <p>All qt5 necessary CMake macros have been set correctly I belive, the only thing that don't work is the linking to QtMain that do nothing, as expected since there should be a Qt5 specific way of doing it that I don't find in the Qt5 documentation.</p>
  
  <p>You can browse the file history to see how it was working with Qt4.</p>