Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to make install rule with a wildcard for files that don't exist?

How to make install rule with a wildcard for files that don't exist?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
installationpro fileqmakemake install
1 Posts 1 Posters 412 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.
  • D Offline
    D Offline
    Dan Princ
    wrote on 16 Nov 2020, 10:03 last edited by Dan Princ
    #1

    Is there a way to set up installation to copy all files with a given extension, if these files are generated during build (so they don't exist when qmake is run)?
    What I tried is basically this:

    csmes.path = $$PATH_INSTALL_BIN
    csmes.files = $$OUT_PWD/*.csmes
    INSTALLS += csmes
    

    but this doesn't work, the rule generated in a makefile is incorrect. I also tried to use the no_check_exist option, but that only seems to work if the files are explicitly listed, which I'm really trying to avoid.
    Is there a way to do this directly in a pro file? I can figure out some workaround and run a custom script during installation, I'm just wondering if there's an easier way. Thanks for any help.

    1 Reply Last reply
    0

    1/1

    16 Nov 2020, 10:03

    • Login

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