CMake: Don't use PUBLIC_LIBRARIES for executables

Change-Id: I5648fbed3542395e65f86e35825b1b50f824133e
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-07-20 17:36:32 +02:00
parent 4720735103
commit fcd64a4981
5 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ qt_internal_add_tool(${target_name}
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
QT_NO_FOREACH
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core # special case
INCLUDE_DIRECTORIES
../shared

View File

@ -26,7 +26,7 @@ qt_internal_add_tool(${target_name}
INCLUDE_DIRECTORIES
../moc
../moc/../../3rdparty/tinycbor/src
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::DBusPrivate
# COMPILE_OPTIONS # special case

View File

@ -13,7 +13,7 @@ qt_internal_add_tool(${target_name}
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_FOREACH
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::DBusPrivate
# COMPILE_OPTIONS # special case

View File

@ -20,7 +20,7 @@ qt_internal_add_tool(${target_name}
recognizer.cpp recognizer.h
DEFINES
QT_NO_FOREACH
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core # special case
)
qt_internal_return_unless_building_tools()

View File

@ -11,7 +11,7 @@ qt_internal_add_tool(${target_name}
TOOLS_TARGET Gui # special case
SOURCES
qvkgen.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core # special case
)
qt_internal_return_unless_building_tools()