Is it possible to have post-build events (as in VC++) in Qt Creator? In particular, I would like to copy the executable to a different folder after it has been built. Can it be done?
2 Answers
You will find here all the variables you can use in your project file (.pro): http://doc.qt.nokia.com/4.7/qmake-variable-reference.html.
The one you are searching for is: DESTDIR
Anyway, in QtCreator you can customize all the build and link operation by adding/removing instructions in the Project tab.
-
You can also use QMAKE_POST_LINK in your. .pro file, which couples it closer to the .pro file than the Project Build Settings. But it only runs when the link triggers, not every time you fire the build.– JimBJun 16, 2018 at 12:05