title: Building Qt project with cmake
body: <p>Just installed <strong>QT</strong> and trying to build a <strong>QT</strong> project from inside the QTcreator using <strong>Cmake</strong> instead of <strong>Qmake</strong>.  </p>
  
  <p>I get the following error:</p>
  
  <pre><code>Starting to parse CMake project, using: "DCMAKE_BUILD_TYPE:STRING=Debug", 
      "-DCMAKE_CXX_COMPILER:STRING=", 
      "-DCMAKE_C_COMPILER:STRING=",
      "DCMAKE_PREFIX_PATH:STRING=C:/Qt/5.13.1/msvc2015_64", 
      "DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/5.13.1/msvc2015_64/bin/qmake.exe".
      The CXX compiler identification is unknown
      CMake Error at CMakeLists.txt:3 (project):
        The CMAKE_CXX_COMPILER:
  
      cl
  
    is not a full path and was not found in the PATH.
  
    To use the JOM generator with Visual C++, cmake must be run from a shell
    that can use the compiler cl from the command line.  This environment is
    unable to invoke the cl compiler.  To fix this problem, run cmake from the
    Visual Studio Command Prompt (vcvarsall.bat).
  
    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.
  
  
  Configuring incomplete, errors occurred!
  See also "C:/Users/tany/AppData/Local/Temp/QtCreator-pKrFgC/qtc-cmake-DqmsxZqd/CMakeFiles/CMakeOutput.log".
  See also "C:/Users/tany/AppData/Local/Temp/QtCreator-pKrFgC/qtc-cmake-DqmsxZqd/CMakeFiles/CMakeError.log".
  CMake Deprecation Warning:
    The 'cmake-server(7)' is deprecated.  Please port clients to use the
    'cmake-file-api(7)' instead.
  
  
  CMake Project parsing failed.
  </code></pre>
  
  <p>Now if I use the <strong>Cmake-GUI</strong> instead, I can configure and generate the project files successfully, after supplying the environment variable <code>CMAKE_PREFIX_PATH</code>. </p>
  
  <p>But I can't get this to work from inside the <strong>QTcreator</strong>. </p>
  
  <p>Anyone has any experience with using <strong>Cmake</strong> with <strong>QTcreator</strong> then please help. </p>
  
  <p>Thank you!</p>