diff --git a/sw/tools/qt_project.py b/sw/tools/qt_project.py index f65020a68a..ee086d2784 100755 --- a/sw/tools/qt_project.py +++ b/sw/tools/qt_project.py @@ -125,6 +125,8 @@ with open(path.join(home_dir , "sw/tools/qtc.creator.user_template")) as input: output.write(s.replace("!TARGET1!", aircraft + " " + target + ".compile")) elif "!TARGET2!" in s: output.write(s.replace("!TARGET2!", aircraft)) + elif "!TARGET3!" in s: + output.write(s.replace("!TARGET3!", aircraft + " " + target + ".upload")) elif "!PPRZHOME!" in s: output.write(s.replace("!PPRZHOME!", getenv("PAPARAZZI_HOME"))) else: diff --git a/sw/tools/qtc.creator.user_template b/sw/tools/qtc.creator.user_template index f241f25e90..eb3174f07a 100644 --- a/sw/tools/qtc.creator.user_template +++ b/sw/tools/qtc.creator.user_template @@ -19,7 +19,7 @@ Cpp - CppGlobal + gnu @@ -31,7 +31,7 @@ 2 UTF-8 false - 1 + 2 false 80 true @@ -42,7 +42,7 @@ 0 true true - 1 + 0 2 false 1 @@ -167,10 +167,10 @@ 2 - - + -C $PAPARAZZI_SRC -f Makefile.ac AIRCRAFT=!TARGET3! + make %{buildDir} - Custom Executable + Run make ProjectExplorer.CustomExecutableRunConfiguration 3768