1 增加声明使用DEFINES+
2 设置输出路径及拷贝
win32:CONFIG(debug,debug|release){
build_type=debug
DESTDIR=$$PWD/../lib/debug
Inputfile=$$PWD/../lib/debug/$${TARGET}.dll
}
else
{
build_type=release
DESTDIR=$$PWD/../lib
Inputfile=$$PWD/../lib/$${TARGET}.dll
}
Inputfile=$$replace(Inputfile, /,\\)
Outputfile=$$PWD/../../Test/$$build_type
Outputfile=$$replace(Outputfile, /,\\)
QMAKE_POST_LINK+=copy /Y $$Inputfile $$Outputfile
3 增加包含路径
INCLUDEPATH+=
4 增加引用lib
LIBS+=
5 指定工程的ui_XXX.h临时文件生成路径
UI_DIR = ./