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'?
Forum Updated to NodeBB v4.3 + New Features

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 898 Views 2 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.
  • K Offline
    K Offline
    kitfox
    wrote on 27 Nov 2019, 01:09 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
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 27 Nov 2019, 01:55 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 27 Nov 2019, 02:05 last edited by
        #3

        How would I set things up the copy the files?

        B J 2 Replies Last reply 27 Nov 2019, 07:23
        0
        • D Offline
          D Offline
          dheerendra
          Qt Champions 2022
          wrote on 27 Nov 2019, 02:45 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
            27 Nov 2019, 02:05

            How would I set things up the copy the files?

            B Offline
            B Offline
            beecksche
            wrote on 27 Nov 2019, 07:23 last edited by beecksche
            #5

            @kitfox

            I like this example on the Qt wiki page.

            1 Reply Last reply
            4
            • K kitfox
              27 Nov 2019, 02:05

              How would I set things up the copy the files?

              J Online
              J Online
              jsulm
              Lifetime Qt Champion
              wrote on 27 Nov 2019, 08:04 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

              1/6

              27 Nov 2019, 01:09

              • Login

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