2018-02-08 13:56 GMT+01:00 william.croc...@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)
Interest mailing list