Identifier for win64 configuration in Qmake

后端 未结 5 2071
南旧
南旧 2020-12-05 13:35

Is there a \"win64\" identifier in Qmake project files? Qt Qmake advanced documentation does not mention other than unix / macx / win32.

So far I\'ve tried using:

5条回答
  •  孤街浪徒
    2020-12-05 13:41

    I do it like this

    win32 {
    
        ## Windows common build here
    
        !contains(QMAKE_TARGET.arch, x86_64) {
            message("x86 build")
    
            ## Windows x86 (32bit) specific build here
    
        } else {
            message("x86_64 build")
    
            ## Windows x64 (64bit) specific build here
    
        }
    }
    

提交回复
热议问题