[Qt-interest] qmake and customizing the target name of the library when using template "lib"

Ulrich Tuerk ulit at no-spam.com
Thu Feb 5 11:33:33 CET 2009


Hi all,
I'm building shared libraries on Linux with qmake. The template is
"lib". On the *nix systems it seems somehow hardcoded that the name of
the library in the Makefile is set to

	lib$(TARGET).so

where $(TARGET) is replaced by the variable TARGET from my .pro file.

Can I somehow overwrite this? I would like define the resulting library
name as those libraries are loadable (plugin-like) modules.

I tried already to set QMAKE_TARGET in the .pro file as well, but this
has no effect. Searching the files in the mkspecs directory didn't
reveal anything useful.

Changing directly the resulting Makefile before using it works but is
not very convenient ;-)

Thanks in advance and best regards,
Uli


-- 
For replying:
Replace the domain "no-spam.com" by "sce-gmbh.de". Thanks.



More information about the Qt-interest-old mailing list