Fix copy command for unix platforms when parent folder does not exist

This commit is contained in:
Roland Winklmeier
2014-03-27 14:50:37 +01:00
parent bbb4ddbaef
commit 187dc04499

View File

@@ -30,7 +30,14 @@ RESOURCES +=
win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yi
else: COPY = cp -r
QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \
win32 {
QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \
$$shell_path($$OUT_PWD/../../bin/sounds)
}
else {
QMAKE_POST_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) && \
$$COPY $$shell_path($$PWD/sounds) \
$$shell_path($$OUT_PWD/../../bin)
}
include (../../libraries.pri)