CMake: Don't use PUBLIC_LIBRARIES for executables
Change-Id: I346ea4eac1dfbfb7fb81609307f5f7c4716bb8d1 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
a78463ef31
commit
eed7b3f4e7
|
@ -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
|
||||
|
|
|
@ -12,7 +12,7 @@ qt_internal_add_app(qml
|
|||
SOURCES
|
||||
conf.h
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::QmlPrivate
|
||||
)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -8,7 +8,7 @@ qt_internal_add_tool(${target_name}
|
|||
INSTALL_DIR "${INSTALL_LIBEXECDIR}"
|
||||
SOURCES
|
||||
main.cpp
|
||||
PUBLIC_LIBRARIES
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::QmlPrivate
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -11,7 +11,7 @@ qt_internal_add_app(qmlscene
|
|||
main.cpp
|
||||
DEFINES
|
||||
QML_RUNTIME_TESTING
|
||||
PUBLIC_LIBRARIES
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::Gui
|
||||
Qt::GuiPrivate
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue