mardi 21 avril 2015

Qt Creator: add custom build configuration settings in .pro

I am trying to add build settings for a custom build configuration.

By default Qt Creator creates debug and release configurations (http://ift.tt/1DchTwK).

For those configs you can add custom build settings. For ex:

release: DESTDIR = $${build_root_dir}/release
debug:   DESTDIR = $${build_root_dir}/debug

I created another build configuration called debug_menu_active in Qt Creator. And I'd like to use the same kind of statements:

debug_menu_active: DEFINES += FORCE_ACTIVE_MENU_DEBUG
debug_menu_active: DESTDIR = $${build_root_dir}/debug_menu_active

Unfortunately it doesn't work message("DEFINES: "$${DEFINES}) gives:

Project MESSAGE: DEFINES :UNICODE QT_LARGEFILE_SUPPORT

I think I need to define something else, but I have no clue what it could be.

Could someone help me with this?

Thanks!

Aucun commentaire:

Enregistrer un commentaire