Results 1 to 2 of 2

Thread: how to define install target of lib in the .pro file

  1. #1
    Join Date
    Oct 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question how to define install target of lib in the .pro file

    Hi.

    I cant seem to find information on how to define an install target through the .pro file
    I thought I could do something like:

    Qt Code:
    1. unix{
    2. message(inside unix scope)
    3. target.path = /usr/local/lib
    4. target.files = *.so
    5. INSTALLS += target
    6. #QMAKE_EXTRA_TARGETS += target
    7. #PRE_TARGETDEPS += target
    8. }
    To copy to clipboard, switch view to plain text mode 

    The last two lines was also tested but no difference

    My question. How do I specify the install target through the pro file. I would like the install to move *.so to /usr/local/lib and *.h to /usr/local/include/myLib
    I did not find enough information in the qmake manual.

    Can anybody help me?

  2. #2
    Join Date
    Oct 2010
    Location
    Bangalore
    Posts
    52
    Thanks
    8
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: how to define install target of lib in the .pro file

    sources.files = Lan_hi.qm HelpMenu.txt
    sources.path = Destination path

    target.path += Destination path
    INSTALLS += target sources

Similar Threads

  1. How to define a string marco in pro file
    By jevonwang in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 6th May 2013, 06:49
  2. How to define a string in a .pro file
    By ChristineD in forum Newbie
    Replies: 4
    Last Post: 16th October 2012, 18:14
  3. qmake rc file define version
    By cafu1007 in forum Qt Programming
    Replies: 3
    Last Post: 26th January 2012, 17:38
  4. install target for configure.exe
    By ccb in forum Installation and Deployment
    Replies: 4
    Last Post: 15th December 2010, 10:13
  5. Replies: 4
    Last Post: 18th April 2010, 01:37

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.