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:
Code:
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?
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