How to save and export custom build steps from Qt Creator?

Viewed 185

I've added a new configuration with a post-build step to my project that calls a PowerShell script. The main idea is to build my executable and compile an InnoSetup file.

The problem is that configurations are saved in the *.pro.user file, which is not to be versioned. Is there a way to save it or to achieve a similar result with qmake and the *.pro file?

1 Answers

I recommend not defining your post-build step that way. I would add it to your .pro file using QMAKE_POST_LINK.

Here's an example that copies some extra files to the destination directory:

QMAKE_POST_LINK = $$QMAKE_COPY $$PWD/some/files $$DESTDIR
Related