Thats how I do it normally:
CONFIG(debug, debug|release) {
unix: TARGET = $$join(TARGET,,,d)
win32: TARGET = $$join(TARGET,,,d)
}
platform is present because initially I thought to use different conventions for different platforms and giving here just as an example
you can add this rule right after you set a target name for libs/apps
normal layout have this rule in the .pro file for generation your library and something like:
CONFIG(debug, debug|release) {
unix: LIBS += -L../libs -L../../libs -lyourlibnamed
win32: LIBS += -L../libs -L../../libs -lyourlibnamed
} else {
unix: LIBS += -L../libs -L../../libs -lyourlibname
win32: LIBS += -L../libs -L../../libs -lyourlibname
}
in a .pri file