[Interest] Two from one.

Ola Røer Thorsen ola at silentwings.no
Thu Feb 8 14:22:17 CET 2018


2018-02-08 13:56 GMT+01:00 william.crocker at analog.com <
william.crocker at analog.com>:

> I have an application.
> I would like to rearchitect it were 90% is in a shared library.
> I would use that lib to link a main application.
> I would like to create a single .pro file that can be
> used to create both the library and main app.
> I do not want to create the lib and app in separate dirs
> with separate .pro files.
>

I don't think it's possible at all with qmake the way you describe it.

However it is easily done with Qbs. You can have a single file, and you
won't have to move any source files.
http://doc-snapshots.qt.io/qbs-1.11/howtos.html (second section)

Cheers,
Ola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180208/696883e3/attachment.html>


More information about the Interest mailing list