1、跨平台配置
Qt 的 pro 中使用 win32 来区分Windows系统;
x86 和 x64 使用:contains(CONFIG, x86) 和 contains(CONFIG, x86_64)
debug 和 release 使用:CONFIG(debug, debug|release)
示例:
win32{contains(CONFIG, x86) {message("Configuring for 32-bit Windows")DEFINES += WIN32_PLATFORMCONFIG(debug, debug|release