Skip to content

Commit 25c6ded

Browse files
committed
added automatic copy of fdml_commands.xml to application directory
1 parent 5514dcc commit 25c6ded

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/FDMLControl.pro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ else {
4242
}
4343

4444
HEADERS += ./fdmlcontrol.h \
45+
fdml_commands.xml \
4546
./QCustomPlot/qcustomplot.h \
4647
authenticationwidget.h \
4748
buttonquerywidget.h \
@@ -77,3 +78,15 @@ FORMS += ./ComSettingsWidget.ui \
7778
RESOURCES += fdmlcontrol.qrc
7879

7980
RC_ICONS = FDMLControl_icon.ico
81+
82+
#Copy xml file to application folder
83+
XMLFILE = $$PWD/fdml_commands.xml
84+
win32 {
85+
XMLFILE = $$shell_path($$PWD/fdml_commands.xml)
86+
DESTFOLDER = $$shell_path($$DESTDIR)
87+
}
88+
else {
89+
XMLFILE = $$PWD/fdml_commands.xml
90+
DESTFOLDER = $$DESTDIR
91+
}
92+
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($${XMLFILE}) $$quote($${DESTFOLDER}) $$escape_expand(\\n\\t)

0 commit comments

Comments
 (0)