Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK, here's an ugly hack:</p> <pre><code># Copy required DLLs to output directory CONFIG(debug, debug|release) { QtCored4.commands = copy /Y %QTDIR%\\bin\\QtCored4.dll debug QtCored4.target = debug/QtCored4.dll QtGuid4.commands = copy /Y %QTDIR%\\bin\\QtGuid4.dll debug QtGuid4.target = debug/QtGuid4.dll QMAKE_EXTRA_TARGETS += QtCored4 QtGuid4 PRE_TARGETDEPS += debug/QtCored4.dll debug/QtGuid4.dll } else:CONFIG(release, debug|release) { QtCore4.commands = copy /Y %QTDIR%\\bin\\QtCore4.dll release QtCore4.target = release/QtCore4.dll QtGui4.commands = copy /Y %QTDIR%\\bin\\QtGui4.dll release QtGui4.target = release/QtGui4.dll QMAKE_EXTRA_TARGETS += QtCore4 QtGui4 PRE_TARGETDEPS += release/QtCore4.dll release/QtGui4.dll } else { error(Unknown set of dependencies.) } </code></pre> <p>Here's some of what I don't like about it:</p> <ul> <li>Uses %QTDIR% environment variable; this variable isn't evaluated until the copy command is actually run. Seems like something along the lines of <a href="http://doc.qt.nokia.com/latest/qmake-variable-reference.html#qmake-libs-qt-dll">QMAKE_LIBS_QT_DLL</a> would be more appropriate, but I couldn't get that working for some reason.</li> <li>Hard-coded "debug" and "release" names; seems like there ought to be some kind of variable to use for that.</li> <li>Calling out to the environment by using the "copy" command.</li> </ul> <p>I'll accept another answer if somebody can clean this up a good bit, for example by shortening it and/or addressing some of my concerns, or just finding a better way in general.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload