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. Adding install section to the generated Makefile

Adding install section to the generated Makefile

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 912 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.
  • A Offline
    A Offline
    Abdeljalil
    wrote on last edited by
    #1

    after running qmake i get the Makefile with empty install section
    how can i make qmake generate the install commands in the Makefile automaticly ?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      Well you can use the pro file to do install stuff. Like for one of my libraries I do:

      @
      INSTALLS += library headers docs

      library.files = libsharkcore.a
      library.path = /usr/local/lib
      headers.path = /usr/local/include/sharkcore
      headers.files = src/.h
      docs.files = docs/docs/html/

      doc.spath = /usr/local/share/doc/sharkcore
      @

      You can check out qmake's docs for info on installing things. If you need more advanced stuff I would look into cmake. It is very compatible with Qt and can do very very advanced install stuff. It support makefiles and a lot of other generators like ninja. As a warning though, cmake can be very confusing/complicated for a first timer. :)

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      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