title: How to call "qmake" like Qt Creator
body: <p>I have a qt project(Qt6.2) and I want compile it by command line.<br />
  I have little knowlage with Makefile.<br />
  I find these command line in Qt Creator's &quot;compile output&quot; window</p>
  <pre><code>Starting: &quot;D:\Qt\Tools\QtCreator\bin\jom\jom.exe&quot; clean
  ...
  The process &quot;D:\Qt\Tools\QtCreator\bin\jom\jom.exe&quot; exited normally.
  Starting: &quot;D:\Qt\6.2.0\msvc2019_64\bin\qmake.exe&quot; D:\gitlab\logger_qt\logger_qt\logger_qt.pro -spec win32-msvc &quot;CONFIG+=qtquickcompiler&quot;
  The process &quot;D:\Qt\6.2.0\msvc2019_64\bin\qmake.exe&quot; exited normally.
  Starting: &quot;D:\Qt\Tools\QtCreator\bin\jom\jom.exe&quot; -f D:/gitlab/logger_qt/logger_qt/build/Makefile qmake_all
  The process &quot;D:\Qt\Tools\QtCreator\bin\jom\jom.exe&quot; exited normally.
  Starting: &quot;D:\Qt\Tools\QtCreator\bin\jom\jom.exe&quot; 
  ...
  The process &quot;D:\Qt\Tools\QtCreator\bin\jom\jom.exe&quot; exited normally.
  </code></pre>
  <p>Here is the batch I called in build directory(src/build)</p>
  <pre><code>...
  :: variable define
  
  call %vcvarsallPath% x86_amd64
  
  %jomPath% clean
  %qmakePath% ..\%proFileName% -spec win32-msvc &quot;CONFIG+=qtquickcompiler&quot; 
  %jomPath% -f MakeFile qmake_all
  %jomPath% all
  </code></pre>
  <p>But the output file is different between command line and Qt Creator.</p>
  <p>Here is the comment of Makefile created by command line</p>
  <pre><code>#############################################################################
  # Makefile for building: logger_qt
  # Generated by qmake (3.1) (Qt 6.2.0)
  # Project:  ..\logger_qt.pro
  # Template: app
  # Command: D:\Qt\6.2.0\msvc2019_64\bin\qmake.exe -o Makefile ..\logger_qt.pro -spec win32-msvc &quot;CONFIG+=qtquickcompiler&quot;
  #############################################################################
  </code></pre>
  <p>I notice <code># Template: app</code>, but I defined <code>TEMPLATE = lib</code> in pro file.<br />
  When run jom in this directory, it throws <code>module machine type 'x64' conflicts with target machine type 'x86'</code>, I don't know how to set target machine type to 'x64'.<br />
  I have tried qmake by Qt Creator and jom by command line, it compiled successed.<br />
  Is there something I missed or incorrect in my batch file?</p>
  <p>PS: the batch file is working normally with qt5.15.2 and qt6.0.1</p>