TEMPLATE = subdirs CONFIG += ordered # The first three subdirs contain dummy .pro files that are used by qmake # to generate a corresponding .gyp file SUBDIRS = shared \ lib \ process \ build \ # This is where we use the generated qt_generated.gypi and run gyp example \ # Ninja executable location needs to be determined early for extra targets. Should be fetched from cache most of the time anyway. NINJA_EXECUTABLE = $$findNinja() # Extra targets that invoke ninja on the desired configuration added for convenience release.target = release release.commands = $$NINJA_EXECUTABLE -C $$getOutDir()/Release release.depends: qmake debug.target = debug debug.commands = $$NINJA_EXECUTABLE -C $$getOutDir()/Debug debug.depends: qmake QMAKE_EXTRA_TARGETS += release \ debug