title: How to deploy QWindowsIntegrationPlugin with CMake
body: <p>I'm using CMake to build a Qt application. My project compiles, and thanks to 'fixup_bundle()', <code>make install</code> copies the required libraries next to my executable. Great!</p>
  
  <p>Only problem is, when I execute it, I get the dreaded 'This application failed to start because it could not find or load the Qt platform plugin "windows".' error.</p>
  
  <p>Indeed, manually copying qwindows.dll into a 'platforms' directory next to the executable fixes the issue. Now, how can I tell CMake to do that automatically?</p>
  
  <p>Not much info from <a href="http://doc.qt.io/qt-5/cmake-manual.html#imported-targets" rel="noreferrer" title="Qt">Qt</a> : </p>
  
  <blockquote>
    <p>Plugins are also available as IMPORTED targets in CMake. The Qt Network, Qt SQL, Qt GUI, and Qt Widgets modules have plugins associated. They provide a list of plugins in the Qt5_PLUGINS variable.</p>
  </blockquote>
  
  <p>All right, I guess I have to play with Qt5::QWindowsIntegrationPlugin, which should be an imported target. That's where I'm lost.</p>
  
  <p>I know (well, I think I know at least) that fixup_bundle() looks into the executable to find its dependencies. But despite the fact that I link my executable against QWindowsIntegrationPlugin, there is no trace of it. Therefore, no qwindows.dll copied into my output path by fixup_bundle().</p>
  
  <p>Except the manual copy of the file, I couldn't find a nice CMake-friendly answer to this issue.</p>
  
  <p>Thanks for your help.</p>