Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMAKE_EXTRA_TARGETS not geting executed
Forum Updated to NodeBB v4.3 + New Features

QMAKE_EXTRA_TARGETS not geting executed

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lolo67
    wrote on last edited by
    #1

    I am trying to use QMAKE_EXTRA_TARGETS - The following project file seems not to work. Not sure what I am doing wrong

    TEMPLATE  = subdirs
    
    SUBDIRS += 
    
    mytarget.commands = echo \" ********************** Hello World\"
    mytarget.depends =
    
    QMAKE_EXTRA_TARGETS += mytarget
    

    Same for this one:

    TEMPLATE  = subdirs
    
    SUBDIRS += 
    
    mytarget.commands = echo test > test.txt
    mytarget.depends =
    
    QMAKE_EXTRA_TARGETS += mytarget
    
    1 Reply Last reply
    0
    • L Offline
      L Offline
      Lolo67
      wrote on last edited by Lolo67
      #2

      Mhmm... seems to be a Qt bug - see https://bugreports.qt.io/browse/QTBUG-63151

      Does anyone see any kind of workaround to archive this functionnality?

      aha_1980A 1 Reply Last reply
      0
      • L Lolo67

        Mhmm... seems to be a Qt bug - see https://bugreports.qt.io/browse/QTBUG-63151

        Does anyone see any kind of workaround to archive this functionnality?

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi @Lolo67,

        QTBUG-63151 seems to be in combination with Visual Studio - do you use Visual Studio?

        I'd rather say your problem is that you try to use these commands in a TEMPLATE = subdirs project file. These files only take subdir projects, the build definitions are in these subdir .pro files.

        If you want the same extra targets in all pro files, you can move them into a .pri file.

        Qt has to stay free or it will die.

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved