Using QMAKE to build a both 32 and 64 bits versions of project

后端 未结 2 1307
粉色の甜心
粉色の甜心 2020-12-29 00:04

I need to generate a 32 bits version of my application however I am compiling on a 64 bits OS. I\'m looking for a way to make QMake to generate both 32 and 64 bits versions

2条回答
  •  情深已故
    2020-12-29 00:24

    Make use of win32: in front of each command you would like be run for win32 architecture only. Or can use a scope as

    win32 {
         SOURCES += paintwidget_win.cpp
     }
    

    Also, you may refer to the architecture win32 or x64 with the ($Platform) MSDN macro for Visual Studio.

提交回复
热议问题