title: Converting QMake project to CMake
body: <p>I recently started to refresh my C++ knowledge (haven't used it for like 10 years~). I chose to use QtCreator, since I wanted to learn more about Qt which I only tried once.</p>
  
  <p>Now, I created a qmake project and it all works just fine, but I would also like to learn about cmake and I thought of converting the project to cmake for that purpose.</p>
  
  <p>Unfortunately my knowledge related to building process of C++ is very small, I usually just let IDE to handle all that stuff for me, since my projects were rather small.</p>
  
  <p>Now, I would like to ask you to help me move my qmake .pro file to cmake CMakeLists.txt, it's fairly simple. </p>
  
  <pre><code>QT       += core gui
  
  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  
  TARGET = model_view_playground
  TEMPLATE = app
  
  DEFINES += QT_DEPRECATED_WARNINGS
  
  QMAKE_CXXFLAGS += -std=c++0x
  
  SOURCES += main.cpp\
          mainwindow.cpp \
      testitemlistmodel.cpp
  
  HEADERS  += mainwindow.h \
      testclass.h \
      testitemlistmodel.h
  
  FORMS    += mainwindow.ui
  
  DISTFILES +=
  </code></pre>
  
  <p>I do not like to get "plug and play" solutions usually, but before I dive into cmake, I'd like to have this converted and be able to build it.</p>
  
  <p>As for building, it's kind of a different question, but perhaps someone can answer this one as well - do I need to make any changes in QtCreator to make it use cmake instead of qmake in my project (or ideally keep them side by side to be able to switch between cmake and qmake)?</p>
  
  <p>I already have CMake added in Build &amp; Run -> CMake (it was autodetected).</p>