copydata.commands = $(COPY_DIR) $$PWD/data $$OUT_PWD
first.depends = $(first) copydata
export(first.depends)
export(copydata.commands)
QMAKE_EXTRA_TARGETS += first copydata
Edit : encore mieux -> http://links.la-bnbox.fr/?kqGppw
-
-
http://dragly.org/2013/11/05/copying-data-files-to-the-build-directory-when-working-with-qmake/