Configuring target for window 32 bit, window 64 bit, unix 32 bit, and unix 64 bit



  • Is it possible to detect if you are compiling for a 32 bit/64 bit platform? I am trying to configure the .pro file so that it can build and output the target with its corresponding platform. The following works to create proper windows and unix target but I also want to break it down to 32 bit and 64 bit targets.

    @
    win32 {
    build_pass: CONFIG(debug, debug|release) {TARGET = OUT_Win32d}
    else {TARGET = OUT_Win32}
    }
    unix {
    build_pass: CONFIG(debug, debug|release) {TARGET = OUT_Unix32d}
    else {TARGET = OUT_Unix32}
    }
    @

    Thank you for your support.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.