Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Setting the correct INSTALLS value for installing a static library

Setting the correct INSTALLS value for installing a static library

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 655 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.
  • B Offline
    B Offline
    bobbaluba
    wrote on last edited by
    #1

    I'm building a non-qt library using qmake, and I want to be able to run the following commands to install the library:

    @qmake ../mylib
    make
    make install@

    I've done this before for applications, using the target and installs variable, like this:

    @target.path = /usr/bin
    INSTALLS += target@

    But this doesn't seem to work for libraries. What's the recommended way to do this?

    EDIT:

    I tried this, but it didn't work

    @DESTDIR = ../lib

    #TODO: this doesn't work! Find a way to copy binaries to /usr/libs folder
    libraryfiles.path = /usr/lib/
    libraryfiles.files += $$DESTDIR/mylib.a
    INSTALLS += libraryfiles@

    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