TEMPLATE = appTARGET = XXXDESTDIR += binDEPENDPATH += . \ qrc \ src \ tr \ uiCONFIG += qt \ warn_on \ windows \ debugQT += core \ guiHEADERS += src/XXX.h \ src/YYY.h \ src/ZZZ.hFORMS += ui/XXX.ui \ ui/YYY.ui \ ui/ZZZ.uiSOURCES += src/XXX.cpp \ src/YYY.cpp \ src/ZZZ.cppRESOURCES += qrc/XYZ.qrcTRANSLATIONS += tr/TTT.tswin32 { RC_FILE += qrc/.rc}UI_DIR += build/ui/RCC_DIR += build/qrc/debug { MOC_DIR += build/moc/debug/ OBJECTS_DIR += build/obj/debug/}else { MOC_DIR += build/moc/release/ OBJECTS_DIR += build/obj/release/}
> qmake> mingw32-make release> mingw32-make debug
debug {}
win32 {}
CONFIG += qt release warn_onSOURCES += src/main.cppdebug { message("folder 1") OBJECTS_DIR = folder1}else { message("folder 2") OBJECTS_DIR = folder2}CONFIG(debug, debug|release) { message ("correct place is folder 1")}else { message ("correct place is folder 2")}
Project MESSAGE: folder 1 //from debug{} --- errorProject MESSAGE: correct place is folder 2 //from CONFIG --- ok
VERSION = 1.00TARGET = app-$${VERSION}
VS_VERSION_INFO VERSIONINFOFILEVERSION 1, 0, 0, 100PRODUCTVERSION 1, 0, 0, 1 FILEFLAGSMASK 0x3fL#ifdef _DEBUG FILEFLAGS 0x9L#else FILEFLAGS 0x8L#endif FILEOS 0x4L FILETYPE 0x1L FILESUBTYPE 0x0LBEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "Comments", "Modified by BZCToOn's" VALUE "CompanyName", "Syntheretix" VALUE "FileDescription", "rcversion MFC Application" VALUE "FileVersion", "1, 0, 0, 100" VALUE "InternalName", "rcversion" VALUE "LegalCopyright", "Copyleft (C) Bzc ToOn'S 2002" VALUE "OriginalFilename", "rcversion.EXE" VALUE "PrivateBuild", "RCVERSION-20030212_100" VALUE "ProductName", "rcversion Application" VALUE "ProductVersion", "1, 0, 0, 1" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x409, 1200 ENDEND