title: Qt, Qmake and Visual Studio 2013
body: <p>I'm currenlty working on a portable project. To make it easier to compile on linux and windows, I'd like to use a .pro file which will generate a Makefile on linux and a visual studio project on windows.</p>
  
  <p>But, I'm facing a problem on a very basic example.</p>
  
  <p>Here is my .pro file:</p>
  
  <pre><code>TEMPLATE        = app
  TARGET          = client
  CONFIG          += debug
  SOURCES         += src/main.cpp
  </code></pre>
  
  <p>My main.cpp only contains an empty main:</p>
  
  <pre><code>int main(void) { return 0; }
  </code></pre>
  
  <p>Then, I just open my visual studio console, cd in my project folder and run <code>qmake.exe -spec win32-msvc2013 -tp vc</code>.</p>
  
  <p>This generates the expected vcxproj file, that I can open with visual studio.</p>
  
  <p>The program compiles well with visual, but I got a fail during the execution: <code>Qt5Cored.dll missing</code>.</p>
  
  <p>I've verified:</p>
  
  <ul>
  <li>In the project properties, Qt lib directory has been added to the libraries directories</li>
  <li>Qt5Cored.dll exists (and is located in the Qt lib directory)</li>
  <li>I'm compiling and executing in debug environment</li>
  </ul>
  
  <p>Additionnal information:</p>
  
  <ul>
  <li>Qt is well installed</li>
  <li>When I create a Qt5 project via visual studio, it works well (but this is not what I want).</li>
  </ul>
  
  <p>When I manually import the .pro file using the Qt add-in, the vcxproj generated works well (no error during the execution): what's the difference? why the qmake doesn't work, but manual import does? Have I missed something to make the qmake work?</p>