Skip to content

Instantly share code, notes, and snippets.

@wimleers
Created December 18, 2010 17:25
Show Gist options
  • Save wimleers/746677 to your computer and use it in GitHub Desktop.
Save wimleers/746677 to your computer and use it in GitHub Desktop.
Automatically copy all files listed in OTHER_FILES to the build directory when using shadow builds.
# Copy all OTHER_FILES to the build directory when using shadow builds.
!equals($${PWD}, $${OUT_PWD}) {
unix:COPY = cp
win32:COPY = copy /y
for(other_file, OTHER_FILES) {
QMAKE_PRE_LINK += $${COPY} $${PWD}/$${other_file} $${OUT_PWD}/$${other_file};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment