PDA

View Full Version : QMake how to define install target of lib in the .pro file



thgis
12th April 2013, 14:08
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:


unix{
message(inside unix scope)
target.path = /usr/local/lib
target.files = *.so
INSTALLS += target
#QMAKE_EXTRA_TARGETS += target
#PRE_TARGETDEPS += target
}

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?

pradeepreddyg95
15th April 2013, 12:59
sources.files = Lan_hi.qm HelpMenu.txt
sources.path = Destination path

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