CMake: Enable Moc for 3rdparty libraries

This is required to support QtVirtualKeyboard's third party OpenWnn
library.

Change-Id: I64b6a2b6b6b0259bea5aa249a8c901def31f916c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Leander Beernaert 2020-04-14 12:29:05 +02:00
parent 310c5d8c55
commit c028cbccc2

View File

@ -3118,6 +3118,8 @@ function(qt_add_3rdparty_library target)
OUTPUT_NAME "${INSTALL_CMAKE_NAMESPACE}${target}"
)
qt_autogen_tools_initial_setup(${target})
if(NOT arg_INTERFACE)
# This property is used for super builds with static libraries. We use
# it in QtPlugins.cmake.in to avoid "polluting" the dependency chain