Skip to content

Instantly share code, notes, and snippets.

@Wohlstand
Last active February 20, 2018 00:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wohlstand/3d9455c4baddc057de60e511f7280b87 to your computer and use it in GitHub Desktop.
Save Wohlstand/3d9455c4baddc057de60e511f7280b87 to your computer and use it in GitHub Desktop.
Example of multi-command QMAKE_POST_LINK
QT += core gui widgets
EXTRA_BINFILES_WIN = $${EXTRA_LIBFILES}
EXTRA_BINFILES_WIN ~= s,/,\\,g
DESTDIR_WIN = $${DESTDIR} #$$OUT_PWD
DESTDIR_WIN ~= s,/,\\,g
for(FILE,EXTRA_BINFILES_WIN) {
QMAKE_POST_LINK += $$quote(cmd /c copy /y $${FILE} $${DESTDIR_WIN}$$escape_expand(\n\t))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment