简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM