qmake设置生成文件分类

在.pro里:

build_type =
CONFIG(debug, debug|release) {
    build_type = debug
} else {
    build_type = release
}

DESTDIR     = $$build_type/out
OBJECTS_DIR = $$build_type/obj
MOC_DIR     = $$build_type/moc
RCC_DIR     = $$build_type/rcc
UI_DIR      = $$build_type/ui

结果:

 

 

 

 

 

参考:http://www.qtbig.com/page/4/

posted @ 2020-09-05 00:31  朱小勇  阅读(231)  评论(0编辑  收藏  举报