[Interest] [Qt6] QML automatic type registration in a (shared) library

Konstantin Shegunov kshegunov at gmail.com
Wed Jan 19 10:14:12 CET 2022


On Wed, Jan 19, 2022 at 10:44 AM Alexandru Croitor <alexandru.croitor at qt.io>
wrote:

> I assume you mean you did target_sources(tsc_ui_target INTERFACE dummy.cpp)
> target_link_libraries(your_shared_lib PRIVATE tsc_ui_target)
>

Yes.

It does work if the direct consumer is a shared lib.
> That doesn't quite work if the consuming target is a static lib, that is
> then linked into an executable/shared lib.
>

Fair enough.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20220119/7c3bbe25/attachment.htm>


More information about the Interest mailing list