Thanks for the explanation.
I now see what my problem REALLY is.
I did not understand how a .pro file works regarding the debug and release configs.
I tried to do like this:
win32: TEMPLATE = vcapp
CONFIG += debug_and_release qt thread
release {
DESTDIR = Release
INCLUDEPATH += GeneratedFiles GeneratedFiles/Release .
MOC_DIR = GeneratedFiles/Release
OBJECTS_DIR = Release/obj
}
debug {
DESTDIR = Debug
INCLUDEPATH += GeneratedFiles GeneratedFiles/Debug .
MOC_DIR = GeneratedFiles/Debug
OBJECTS_DIR = Debug/obj
}
win32: TEMPLATE = vcapp
CONFIG += debug_and_release qt thread
release {
DESTDIR = Release
INCLUDEPATH += GeneratedFiles GeneratedFiles/Release .
MOC_DIR = GeneratedFiles/Release
OBJECTS_DIR = Release/obj
}
debug {
DESTDIR = Debug
INCLUDEPATH += GeneratedFiles GeneratedFiles/Debug .
MOC_DIR = GeneratedFiles/Debug
OBJECTS_DIR = Debug/obj
}
To copy to clipboard, switch view to plain text mode
not understanding the the scope variables debug and release are BOTH defined when debug_and_release is used.
I assumed that the conditionals would set up my VC release/debug project configurations accordingly, and this did not work. Now as the debug scope was handled after the release scope, the debug scope wins.
Does the debug and release scopes in the .pro file have anything whatsoever to do with the generated VC project debug/release configurations?
If they do, can you suggest a method to achieve what I want to do (if I can make myself understood)?
Bookmarks