Examples: Use PRIVATE CMake linkage
We (almost) only build apps, for which PRIVATE linkage makes more sense. Change-Id: I09a509c3fb33a00cdfdede687b3f95d638f42091 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
d221ea609f
commit
a5de12f0d7
@ -21,7 +21,7 @@ qt_add_executable(bindablesubscription
|
||||
bindableuser.cpp bindableuser.h
|
||||
)
|
||||
|
||||
target_link_libraries(bindablesubscription PUBLIC
|
||||
target_link_libraries(bindablesubscription PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -21,7 +21,7 @@ qt_add_executable(subscription
|
||||
user.cpp user.h
|
||||
)
|
||||
|
||||
target_link_libraries(subscription PUBLIC
|
||||
target_link_libraries(subscription PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(localfortuneclient PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(localfortuneclient PUBLIC
|
||||
target_link_libraries(localfortuneclient PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(localfortuneserver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(localfortuneserver PUBLIC
|
||||
target_link_libraries(localfortuneserver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(sharedmemory PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(sharedmemory PUBLIC
|
||||
target_link_libraries(sharedmemory PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(mimetypebrowser PROPERTIES
|
||||
MACOSX_BUNDLE FALSE
|
||||
)
|
||||
|
||||
target_link_libraries(mimetypebrowser PUBLIC
|
||||
target_link_libraries(mimetypebrowser PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -27,7 +27,7 @@ set_target_properties(permissions PROPERTIES
|
||||
|
||||
qt_finalize_executable(permissions)
|
||||
|
||||
target_link_libraries(permissions PUBLIC
|
||||
target_link_libraries(permissions PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(cbordump
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(cbordump PUBLIC
|
||||
target_link_libraries(cbordump PRIVATE
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
|
@ -25,7 +25,7 @@ qt_add_executable(convert
|
||||
xmlconverter.cpp xmlconverter.h
|
||||
)
|
||||
|
||||
target_link_libraries(convert PUBLIC
|
||||
target_link_libraries(convert PRIVATE
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
|
@ -21,7 +21,7 @@ qt_add_executable(savegame
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(savegame PUBLIC
|
||||
target_link_libraries(savegame PRIVATE
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(mandelbrot PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(mandelbrot PUBLIC
|
||||
target_link_libraries(mandelbrot PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(queuedcustomtype PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(queuedcustomtype PUBLIC
|
||||
target_link_libraries(queuedcustomtype PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(semaphores
|
||||
semaphores.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(semaphores PUBLIC
|
||||
target_link_libraries(semaphores PRIVATE
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(waitconditions
|
||||
waitconditions.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(waitconditions PUBLIC
|
||||
target_link_libraries(waitconditions PRIVATE
|
||||
Qt6::Core
|
||||
)
|
||||
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(contiguouscache PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(contiguouscache PUBLIC
|
||||
target_link_libraries(contiguouscache PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(customtype PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(customtype PUBLIC
|
||||
target_link_libraries(customtype PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(customtypesending PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(customtypesending PUBLIC
|
||||
target_link_libraries(customtypesending PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -41,7 +41,7 @@ set_target_properties(chat PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(chat PUBLIC
|
||||
target_link_libraries(chat PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::DBus
|
||||
Qt6::Gui
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(listnames
|
||||
listnames.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(listnames PUBLIC
|
||||
target_link_libraries(listnames PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::DBus
|
||||
)
|
||||
|
@ -19,7 +19,7 @@ qt_add_executable(ping
|
||||
ping-common.h
|
||||
)
|
||||
|
||||
target_link_libraries(ping PUBLIC
|
||||
target_link_libraries(ping PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::DBus
|
||||
)
|
||||
@ -29,7 +29,7 @@ qt_add_executable(pong
|
||||
pong.cpp pong.h
|
||||
)
|
||||
|
||||
target_link_libraries(pong PUBLIC
|
||||
target_link_libraries(pong PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::DBus
|
||||
)
|
||||
|
@ -35,7 +35,7 @@ set_target_properties(car PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(car PUBLIC
|
||||
target_link_libraries(car PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::DBus
|
||||
Qt6::Gui
|
||||
|
@ -33,7 +33,7 @@ set_target_properties(controller PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(controller PUBLIC
|
||||
target_link_libraries(controller PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::DBus
|
||||
Qt6::Gui
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(digiflip PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(digiflip PUBLIC
|
||||
target_link_libraries(digiflip PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(flickable PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(flickable PUBLIC
|
||||
target_link_libraries(flickable PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(flightinfo PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(flightinfo PUBLIC
|
||||
target_link_libraries(flightinfo PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(lightmaps PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(lightmaps PUBLIC
|
||||
target_link_libraries(lightmaps PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(raycasting PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(raycasting PUBLIC
|
||||
target_link_libraries(raycasting PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(styleexample PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(styleexample PUBLIC
|
||||
target_link_libraries(styleexample PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,11 +24,11 @@ set_target_properties(gui_analogclock PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_include_directories(gui_analogclock PUBLIC
|
||||
target_include_directories(gui_analogclock PRIVATE
|
||||
../rasterwindow
|
||||
)
|
||||
|
||||
target_link_libraries(gui_analogclock PUBLIC
|
||||
target_link_libraries(gui_analogclock PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(rasterwindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(rasterwindow PUBLIC
|
||||
target_link_libraries(rasterwindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
)
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(blockingfortuneclient PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(blockingfortuneclient PUBLIC
|
||||
target_link_libraries(blockingfortuneclient PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(broadcastreceiver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(broadcastreceiver PUBLIC
|
||||
target_link_libraries(broadcastreceiver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(broadcastsender PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(broadcastsender PUBLIC
|
||||
target_link_libraries(broadcastsender PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(dnslookup
|
||||
dnslookup.cpp dnslookup.h
|
||||
)
|
||||
|
||||
target_link_libraries(dnslookup PUBLIC
|
||||
target_link_libraries(dnslookup PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Network
|
||||
)
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(download
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(download PUBLIC
|
||||
target_link_libraries(download PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Network
|
||||
)
|
||||
|
@ -20,7 +20,7 @@ qt_add_executable(downloadmanager
|
||||
textprogressbar.cpp textprogressbar.h
|
||||
)
|
||||
|
||||
target_link_libraries(downloadmanager PUBLIC
|
||||
target_link_libraries(downloadmanager PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Network
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(fortuneclient PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(fortuneclient PUBLIC
|
||||
target_link_libraries(fortuneclient PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(fortuneserver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(fortuneserver PUBLIC
|
||||
target_link_libraries(fortuneserver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(googlesuggest PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(googlesuggest PUBLIC
|
||||
target_link_libraries(googlesuggest PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(http PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(http PUBLIC
|
||||
target_link_libraries(http PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(loopback PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(loopback PUBLIC
|
||||
target_link_libraries(loopback PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(multicastreceiver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(multicastreceiver PUBLIC
|
||||
target_link_libraries(multicastreceiver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(multicastsender PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(multicastsender PUBLIC
|
||||
target_link_libraries(multicastsender PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -28,7 +28,7 @@ set_target_properties(multistreamclient PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(multistreamclient PUBLIC
|
||||
target_link_libraries(multistreamclient PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -28,7 +28,7 @@ set_target_properties(multistreamserver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(multistreamserver PUBLIC
|
||||
target_link_libraries(multistreamserver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -28,7 +28,7 @@ set_target_properties(network-chat PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(network-chat PUBLIC
|
||||
target_link_libraries(network-chat PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(securesocketclient PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(securesocketclient PUBLIC
|
||||
target_link_libraries(securesocketclient PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(secureudpclient PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(secureudpclient PUBLIC
|
||||
target_link_libraries(secureudpclient PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(secureudpserver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(secureudpserver PUBLIC
|
||||
target_link_libraries(secureudpserver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(threadedfortuneserver PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(threadedfortuneserver PUBLIC
|
||||
target_link_libraries(threadedfortuneserver PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -35,7 +35,7 @@ set_target_properties(torrent PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(torrent PUBLIC
|
||||
target_link_libraries(torrent PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Network
|
||||
|
@ -27,7 +27,7 @@ set_target_properties(2dpainting PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(2dpainting PUBLIC
|
||||
target_link_libraries(2dpainting PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(computegles31 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(computegles31 PUBLIC
|
||||
target_link_libraries(computegles31 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(contextinfo PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(contextinfo PUBLIC
|
||||
target_link_libraries(contextinfo PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(cube PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(cube PUBLIC
|
||||
target_link_libraries(cube PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -27,7 +27,7 @@ set_target_properties(hellogl2 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellogl2 PUBLIC
|
||||
target_link_libraries(hellogl2 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(hellogles3 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellogles3 PUBLIC
|
||||
target_link_libraries(hellogles3 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(hellowindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellowindow PUBLIC
|
||||
target_link_libraries(hellowindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::CorePrivate
|
||||
Qt6::Gui
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(openglwindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(openglwindow PUBLIC
|
||||
target_link_libraries(openglwindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(paintedwindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(paintedwindow PUBLIC
|
||||
target_link_libraries(paintedwindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(qopenglwidget PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(qopenglwidget PUBLIC
|
||||
target_link_libraries(qopenglwidget PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(qopenglwindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(qopenglwindow PUBLIC
|
||||
target_link_libraries(qopenglwindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(textures PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(textures PUBLIC
|
||||
target_link_libraries(textures PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(threadedqopenglwidget PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(threadedqopenglwidget PUBLIC
|
||||
target_link_libraries(threadedqopenglwidget PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::OpenGL
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(qrasterwindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(qrasterwindow PUBLIC
|
||||
target_link_libraries(qrasterwindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(windows PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(windows PUBLIC
|
||||
target_link_libraries(windows PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::CorePrivate
|
||||
Qt6::Gui
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(imagescaling PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(imagescaling PUBLIC
|
||||
target_link_libraries(imagescaling PRIVATE
|
||||
Qt6::Concurrent
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(mapdemo
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(mapdemo PUBLIC
|
||||
target_link_libraries(mapdemo PRIVATE
|
||||
Qt6::Concurrent
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(progressdialog PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(progressdialog PUBLIC
|
||||
target_link_libraries(progressdialog PRIVATE
|
||||
Qt6::Concurrent
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(runfunction
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(runfunction PUBLIC
|
||||
target_link_libraries(runfunction PRIVATE
|
||||
Qt6::Concurrent
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
|
@ -18,7 +18,7 @@ qt_add_executable(wordcount
|
||||
main.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(wordcount PUBLIC
|
||||
target_link_libraries(wordcount PRIVATE
|
||||
Qt6::Concurrent
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(tutorial1 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tutorial1 PUBLIC
|
||||
target_link_libraries(tutorial1 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Test
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(tutorial2 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tutorial2 PUBLIC
|
||||
target_link_libraries(tutorial2 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Test
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(tutorial3 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tutorial3 PUBLIC
|
||||
target_link_libraries(tutorial3 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Test
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(tutorial4 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tutorial4 PUBLIC
|
||||
target_link_libraries(tutorial4 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Test
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(tutorial5 PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tutorial5 PUBLIC
|
||||
target_link_libraries(tutorial5 PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Test
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(books PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(books PUBLIC
|
||||
target_link_libraries(books PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(cachedtable PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(cachedtable PUBLIC
|
||||
target_link_libraries(cachedtable PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -27,7 +27,7 @@ set_target_properties(drilldown PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(drilldown PUBLIC
|
||||
target_link_libraries(drilldown PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(masterdetail PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(masterdetail PUBLIC
|
||||
target_link_libraries(masterdetail PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(querymodel PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(querymodel PUBLIC
|
||||
target_link_libraries(querymodel PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(relationaltablemodel PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(relationaltablemodel PUBLIC
|
||||
target_link_libraries(relationaltablemodel PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -29,7 +29,7 @@ set_target_properties(sqlbrowser PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(sqlbrowser PUBLIC
|
||||
target_link_libraries(sqlbrowser PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(sqlwidgetmapper PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(sqlwidgetmapper PUBLIC
|
||||
target_link_libraries(sqlwidgetmapper PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(tablemodel PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tablemodel PUBLIC
|
||||
target_link_libraries(tablemodel PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Sql
|
||||
|
@ -29,7 +29,7 @@ set_target_properties(hellovulkancubes PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellovulkancubes PUBLIC
|
||||
target_link_libraries(hellovulkancubes PRIVATE
|
||||
Qt6::Concurrent
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(hellovulkantexture PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellovulkantexture PUBLIC
|
||||
target_link_libraries(hellovulkantexture PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
)
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(hellovulkantriangle PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellovulkantriangle PUBLIC
|
||||
target_link_libraries(hellovulkantriangle PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
)
|
||||
|
@ -25,7 +25,7 @@ set_target_properties(hellovulkanwidget PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellovulkanwidget PUBLIC
|
||||
target_link_libraries(hellovulkanwidget PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(hellovulkanwindow PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(hellovulkanwindow PUBLIC
|
||||
target_link_libraries(hellovulkanwindow PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
)
|
||||
|
@ -26,7 +26,7 @@ set_target_properties(easing PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(easing PUBLIC
|
||||
target_link_libraries(easing PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(screenshot PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(screenshot PUBLIC
|
||||
target_link_libraries(screenshot PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(systray PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(systray PUBLIC
|
||||
target_link_libraries(systray PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(classwizard PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(classwizard PUBLIC
|
||||
target_link_libraries(classwizard PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(extension PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(extension PUBLIC
|
||||
target_link_libraries(extension PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(findfiles PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(findfiles PUBLIC
|
||||
target_link_libraries(findfiles PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(licensewizard PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(licensewizard PUBLIC
|
||||
target_link_libraries(licensewizard PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::PrintSupport
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(standarddialogs PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(standarddialogs PUBLIC
|
||||
target_link_libraries(standarddialogs PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -24,7 +24,7 @@ set_target_properties(tabdialog PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(tabdialog PUBLIC
|
||||
target_link_libraries(tabdialog PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
@ -23,7 +23,7 @@ set_target_properties(trivialwizard PROPERTIES
|
||||
MACOSX_BUNDLE TRUE
|
||||
)
|
||||
|
||||
target_link_libraries(trivialwizard PUBLIC
|
||||
target_link_libraries(trivialwizard PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user