diff options
Diffstat (limited to 'examples/examples.pro')
-rw-r--r-- | examples/examples.pro | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/examples/examples.pro b/examples/examples.pro index e86e611da..854677b57 100644 --- a/examples/examples.pro +++ b/examples/examples.pro @@ -1,3 +1,22 @@ CONFIG += ordered TEMPLATE = subdirs -SUBDIRS += testapp + +EXTRASUBDIRS = testapp + + +include(../installerfw.pri) + +!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) { + for(SUBDIR, EXTRASUBDIRS) { + mkdir.commands += $$QMAKE_MKDIR $$SUBDIR $${IFW_NEWLINE} + } + QMAKE_EXTRA_TARGETS += mkdir +} + +for(SUBDIR, EXTRASUBDIRS) { + examples.commands += cd $$SUBDIR && $(QMAKE) -r $$PWD/$$SUBDIR && $(MAKE) $${IFW_NEWLINE} +} +!isEqual(IFW_SOURCE_TREE, $$IFW_BUILD_TREE) { + examples.depends = mkdir +} +QMAKE_EXTRA_TARGETS += examples |