From 29f3abdeac0df6cf3cfb4e871d33c68fae03dff8 Mon Sep 17 00:00:00 2001 From: Ilya Kitaev Date: Mon, 25 Jan 2016 21:36:33 +0300 Subject: [PATCH] Copy lang files to the output directory at the "build" step --- monero-core.pro | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/monero-core.pro b/monero-core.pro index 5cfbbf37..4547abe8 100644 --- a/monero-core.pro +++ b/monero-core.pro @@ -2,10 +2,24 @@ TEMPLATE = app QT += qml quick widgets +HEADERS += \ + filter.h \ + clipboardAdapter.h + + SOURCES += main.cpp \ filter.cpp \ clipboardAdapter.cpp +CONFIG(release, debug|release) { + DESTDIR=release +} + +CONFIG(debug, debug|release) { + DESTDIR=debug +} + + RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model @@ -14,6 +28,8 @@ QML_IMPORT_PATH = # Default rules for deployment. include(deployment.pri) -HEADERS += \ - filter.h \ - clipboardAdapter.h +# copy language files (xml and images) to the output directory + +copydata.commands = $(COPY_DIR) $$shell_path($$PWD/lang) $$shell_path($$DESTDIR/lang) +QMAKE_EXTRA_TARGETS += copydata +POST_TARGETDEPS += copydata