[Qt-interest] simple qmake doubt
J-P Nurmi
jpnurmi at gmail.com
Fri May 7 11:49:26 CEST 2010
On Fri, May 7, 2010 at 12:29 PM, Mandeep Sandhu
<mandeepsandhu.chd at gmail.com> wrote:
> I'm creating a shared lib and would like the .so to be put in a dir
> call "./lib" and the relevant headers to go in "./include".
>
> The lib part is accomplished by setting the DESTDIR var to "./lib" in
> the .pro file.
>
> How do I instruct "qmake" to make a dir "./include" and copy the
> headers in that dir. For the list of headers I can use $${HEADERS}
> value. But I'm not able to figure out how to make it copy the .h files
> into the required dir.
>
> Should I be using the install rule for this purpose (though it's not
> clear to me as to how that'll help)?
>
> Thanks,
> -mandeep
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
DESTDIR is the target _build_ dir. You don't want to set DESTDIR
anywhere in system dirs. You don't want to require super user
privileges in order to build, right? As for installing stuff around,
the normal way is to write an install target:
target.path = /path/to/lib
headers.path = /path/to/include
headers.files = $$HEADERS
INSTALLS += target headers
--
J-P Nurmi
More information about the Qt-interest-old
mailing list