TEMPLATE = subdirsSUBDIRS = src plugins toolsCONFIG += ordered# Собственно, не знаю как определить эту переменнуюROOTPWD = $$PWD
DESTDIR = $$ROOTPWD/binmessage($$ROOTPWD)
TEMPLATE = subdirsSUBDIRS = srcCONFIG += orderedinclude(config.pri)message(PWD in main: $$PWD)message(ROOTPWD in main: $$ROOTPWD)
include(../config.pri)message(PWD in src: $$PWD)message(ROOTPWD in src: $$ROOTPWD)
ROOTPWD = $$PWD
Выполняется сборка проекта main...Запускается: /usr/bin/qmake-qt4 /home/enamored/main/main.pro -spec linux-g++ -r CONFIG+=debug Project MESSAGE: PWD in main: /home/enamored/mainProject MESSAGE: ROOTPWD in main: /home/enamored/mainReading /home/enamored/main/src/src.proProject MESSAGE: PWD in src: /home/enamored/main/srcProject MESSAGE: ROOTPWD in src: /home/enamored/mainЗавершено с кодом возврата 0.
defineTest(setGlobalVar){ system($$QMAKE_QMAKE -set $$1 $$2)}!build_pass:setGlobalVar(MYVAR, \"Hello, World\")TEMPLATE = subdirsSUBDIRS = foo.pro \ bar.pro
defineReplace(globalVar){ return($$system($$QMAKE_QMAKE -query $$1))}!build_pass{ message($$globalVar(MYVAR))}...