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. Can I have qmake copy all my header files into a directory called 'include'?

Can I have qmake copy all my header files into a directory called 'include'?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 893 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.
  • K Offline
    K Offline
    kitfox
    wrote on last edited by
    #1

    I'm using qmake to build a library and would like as part of the build process to copy all the .h files in my source tree to a separate directory called 'include' for end users to use. Is there a way to do this?

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by
      #2

      yes
      and qmake doesn't make anything. It just prepares the Makefile which does the actual work.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kitfox
        wrote on last edited by
        #3

        How would I set things up the copy the files?

        beeckscheB jsulmJ 2 Replies Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          You can copy the files using the post build setup in qmake. You can search in google. You will get a few links on how to do this.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          3
          • K kitfox

            How would I set things up the copy the files?

            beeckscheB Offline
            beeckscheB Offline
            beecksche
            wrote on last edited by beecksche
            #5

            @kitfox

            I like this example on the Qt wiki page.

            1 Reply Last reply
            4
            • K kitfox

              How would I set things up the copy the files?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @kitfox Take a look at https://doc.qt.io/qt-5/qmake-advanced-usage.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              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