Unsolved Declare variable of path in .pro file
-
Hi,
I have repeated "../../GreenhouseApp/src" in the code very many times, how can I create a variable that holds the path value. And how to insert it into the path declaration in SOURCES?
SOURCES += \ testsection.cpp \ ../../GreenhouseApp/src/SectionWidget/section.cpp \ ../../GreenhouseApp/src/SectionWidget/device.cpp \ ../../GreenhouseApp/src/SectionWidget/settingsdialog.cpp \ ../../GreenhouseApp/src/messenger.cpp
-
Hi
COMMONDIR=../../../Common SOURCES += $$COMMONDIR/path/xxx.cpp \ $$COMMONDIR/otherpath/yyy.cpp