Keeping compiled x32, x64 configurations separated
-
I need to test my QT application to ensure it runs on both 32 and 64 bit versions ( of both Windows and Linux). Qmake has this very nice feature so that a single .pro file can detect if I'm compiling on a Windows or Linux machine using these conditional statements:
unix {
LIBS += ...
DEFINES += ...
}win32 {
LIBS += ...
DEFINES += ...
}which work great for maintaining my application so that it will compile and link correctly no matter what OS I'm on. (I assume there is something simlar of Mac OS too).
But I want my DESTDIR variable path to have separate paths for x32 and x64 (32 and 64 bit applications). Is there a conditional I can use to distinguish this? i.e.,
x32 {
DESTDIR = ../bin/x32/Debug
}x64 {
DESTDIR = ../bin/x64/Debug
}????
Mike -
-
Thanks Chris,
Much obliged. Looks like QMAKE_TARGET.arch might do the trick...
Mike