How to create project for only system commands



  • I need to create some projects for running of the only system commands. For example, running of the batch file under Win or the bash file under Mac. I want to include this projects to the main project's tree and run it only if it's necessary. Which TEMPLATE can I use for this?

    I mean something like that:
    project's tree:
    @
    TEMPLATE = subdirs
    CONFIG += ordered

    SUBDIRS += project1
    SUBDIRS += project2
    SUBDIRS += project3
    isEqual(DEPLOYING,"1") SUBDIRS += deployer
    isEqual(INSTALLER,"1") SUBDIRS += installer
    @

    deploying project:
    @
    win32{
    $$system("deploy.bat")
    }
    macx{
    $$system("deploy.sh")
    }
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.