Qt World Summit: Register Today!

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 \

  • Lifetime Qt Champion


    SOURCES +=  $$COMMONDIR/path/xxx.cpp \

Log in to reply