CMake: Don't use PUBLIC_LIBRARIES for executables

Change-Id: I346ea4eac1dfbfb7fb81609307f5f7c4716bb8d1
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Alexandru Croitor 2022-07-20 17:40:35 +02:00
parent a78463ef31
commit eed7b3f4e7
17 changed files with 16 additions and 17 deletions

View File

@ -17,7 +17,7 @@ qt_internal_add_module(QmlTypeRegistrarPrivate
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
GENERATE_CPP_EXPORTS
GENERATE_PRIVATE_CPP_EXPORTS

View File

@ -12,7 +12,7 @@ qt_internal_add_app(qml
SOURCES
conf.h
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::QmlPrivate
)

View File

@ -17,7 +17,7 @@ qt_internal_add_tool(${target_name}
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES
LIBRARIES
Qt::QmlCompilerPrivate
)
qt_internal_return_unless_building_tools()

View File

@ -11,7 +11,7 @@ qt_internal_add_tool(${target_name}
TOOLS_TARGET Qml # special case
SOURCES
qmldomtool.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::QmlDomPrivate
)

View File

@ -16,7 +16,7 @@ qt_internal_add_app(qmleasing
properties.ui
segmentproperties.cpp segmentproperties.h
splineeditor.cpp splineeditor.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
Qt::Qml
Qt::Quick

View File

@ -15,7 +15,7 @@ qt_internal_add_tool(${target_name}
qmlformat.cpp
../shared/qqmltoolingsettings.h
../shared/qqmltoolingsettings.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Core
Qt::QmlDomPrivate
)

View File

@ -17,7 +17,7 @@ qt_internal_add_tool(${target_name}
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
PUBLIC_LIBRARIES
LIBRARIES
Qt::QmlCompilerPrivate
Qt::QmlPrivate
)

View File

@ -35,7 +35,7 @@ qt_internal_add_app(qmljs
../../src/3rdparty/masm/stubs/runtime
../../src/3rdparty/masm/stubs/wtf
../../src/3rdparty/masm/wtf
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::QmlPrivate
)

View File

@ -8,7 +8,7 @@ qt_internal_add_tool(${target_name}
INSTALL_DIR "${INSTALL_LIBEXECDIR}"
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::QmlPrivate
)

View File

@ -15,7 +15,7 @@ qt_internal_add_tool(${target_name}
main.cpp
../shared/qqmltoolingsettings.h
../shared/qqmltoolingsettings.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::QmlCompilerPrivate
)

View File

@ -26,7 +26,7 @@ qt_internal_add_app(qmlls
../shared/qqmltoolingsettings.cpp
DEFINES
QT_USE_QSTRINGBUILDER
PUBLIC_LIBRARIES
LIBRARIES
Qt::QmlPrivate
Qt::CorePrivate
Qt::QmlDomPrivate

View File

@ -16,7 +16,6 @@ qt_internal_add_tool(${target_name}
qmltypereader.cpp qmltypereader.h
LIBRARIES
Qt::QmlTypeRegistrarPrivate
PUBLIC_LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::Qml

View File

@ -13,7 +13,7 @@ qt_internal_add_app(qmlpreview
main.cpp
qmlpreviewapplication.cpp qmlpreviewapplication.h
qmlpreviewfilesystemwatcher.cpp qmlpreviewfilesystemwatcher.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Network
Qt::QmlDebugPrivate
)

View File

@ -18,7 +18,7 @@ qt_internal_add_tool(${target_name}
qmlprofilerapplication.cpp qmlprofilerapplication.h
qmlprofilerclient.cpp qmlprofilerclient.h
qmlprofilerdata.cpp qmlprofilerdata.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Network
Qt::QmlDebugPrivate
)

View File

@ -11,7 +11,7 @@ qt_internal_add_app(qmlscene
main.cpp
DEFINES
QML_RUNTIME_TESTING
PUBLIC_LIBRARIES
LIBRARIES
Qt::CorePrivate
Qt::Gui
Qt::GuiPrivate

View File

@ -13,7 +13,7 @@ qt_internal_add_tool(${target_name}
TOOLS_TARGET Qml # special case
SOURCES
main.cpp
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
Qt::Qml
Qt::QuickTest

View File

@ -13,7 +13,7 @@ qt_internal_add_tool(${target_name}
TOOLS_TARGET Qml # special case
SOURCES
qmltime.cpp qmltime.h
PUBLIC_LIBRARIES
LIBRARIES
Qt::Gui
Qt::Qml
Qt::Quick