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. Install file that will be created during build process
Forum Updated to NodeBB v4.3 + New Features

Install file that will be created during build process

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.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.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    Hi,
    I have install section in my *.pro which copies built binaries to some location. I noticed that during first invoke of build proces, when the build directory is empty so it doesn't contain source files to be copied, the makefile doesn't contain install section for nonexisting files (my binaries to be copied naturally don't exist as they haven't been built yet). To fix this, I have to run qmake after first build to regenerate makefile which then contains install section for built binaries.

    How to fix that, i.e. how to install built binaries in one step?

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      there is a special install (called target) that can be used as described here: http://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files

      target "contains" in the file part your binaries

      target.path = destination/path/where/files/will/be/copied/to
      INSTALLS += target
      

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      M 1 Reply Last reply
      2
      • VRoninV VRonin

        there is a special install (called target) that can be used as described here: http://doc.qt.io/qt-5/qmake-advanced-usage.html#installing-files

        target "contains" in the file part your binaries

        target.path = destination/path/where/files/will/be/copied/to
        INSTALLS += target
        
        M Offline
        M Offline
        MartinD
        wrote on last edited by
        #3

        @VRonin Thanks, that is helpful. However, in my case, only partially.

        I want also to copy files created during build, which are not consisted in special install called "target". Is there a possibility to copy them without invoking qmake/build several times?

        VRoninV 1 Reply Last reply
        0
        • M MartinD

          @VRonin Thanks, that is helpful. However, in my case, only partially.

          I want also to copy files created during build, which are not consisted in special install called "target". Is there a possibility to copy them without invoking qmake/build several times?

          VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          @MartinD said in Install file that will be created during build process:

          I want also to copy files created during build

          can you explain what they are?

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          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