Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Generated source code files with qmake
Qt 6.11 is out! See what's new in the release blog

Generated source code files with qmake

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 3.2k Views 1 Watching
  • 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
    ludde
    wrote on last edited by
    #1

    Trying to make qmake work with a project that contains generated source code files.
    I want the files to be generated, and then compiled, when I run 'make' and removed when I do 'make clean'.

    I found a way to do this, using the somewhat obscure QMAKE_EXTRA_COMPILERS feature.
    However, my code generator creates several .cpp files from a single source file, and it seems like QMAKE_EXTRA_COMPILERS only expects a single file to be generated.
    I.e., setting .output to a list of files does not work, only the first one gets compiled.

    Does anyone have an idea on how to make QMAKE_EXTRA_COMPILERS handle several output files, or maybe an idea on how to accomplish what I want in some other way?

    1 Reply Last reply
    0

    • Login

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