diff --git a/share/qtcreator/templates/wizards/projects/consoleapp/file.pro b/share/qtcreator/templates/wizards/projects/consoleapp/file.pro index bcd25cfa3b3..8cbe4523ae2 100644 --- a/share/qtcreator/templates/wizards/projects/consoleapp/file.pro +++ b/share/qtcreator/templates/wizards/projects/consoleapp/file.pro @@ -16,3 +16,8 @@ DEFINES += QT_DEPRECATED_WARNINGS SOURCES += \\ %{CppFileName} + +# Default rules for deployment. +qnx: target.path = /tmp/$${TARGET}/bin +else: unix:!android: target.path = /opt/$${TARGET}/bin +!isEmpty(target.path): INSTALLS += target diff --git a/src/plugins/qmakeprojectmanager/wizards/guiappwizard.cpp b/src/plugins/qmakeprojectmanager/wizards/guiappwizard.cpp index 2e211758df8..00f32d47db1 100644 --- a/src/plugins/qmakeprojectmanager/wizards/guiappwizard.cpp +++ b/src/plugins/qmakeprojectmanager/wizards/guiappwizard.cpp @@ -200,7 +200,10 @@ Core::GeneratedFiles GuiAppWizard::generateFiles(const QWizard *w, << "\nMOBILITY = " << "\n"; } - proStr << '\n'; + proStr << "\n\n# Default rules for deployment.\n" + "qnx: target.path = /tmp/$${TARGET}/bin\n" + "else: unix:!android: target.path = /opt/$${TARGET}/bin\n" + "!isEmpty(target.path): INSTALLS += target\n"; } profile.setContents(contents); // List