CMake: Remove Gui dependency of androidtestrunner

It doesn't use any Gui classes and thus shouldn't depend on Gui.
Also change PUBLIC_LIBRARIES to LIBRARIES, executables don't need to
propagate library dependencies.

Pick-to: 6.2 6.3 6.4
Change-Id: I9edae7e555e1d74d63b00afbf9e3931963b502c2
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-05-17 08:44:43 +02:00
parent ba2ae1720a
commit 3eaf6a4cad

View File

@ -14,8 +14,8 @@ qt_internal_add_tool(${target_name}
QT_NO_CAST_FROM_ASCII QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII QT_NO_CAST_TO_ASCII
QT_NO_FOREACH QT_NO_FOREACH
PUBLIC_LIBRARIES LIBRARIES
Qt::Gui Qt::Core
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
../shared ../shared
) )