summaryrefslogtreecommitdiff
path: root/examples/gui
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2022-11-21 12:03:41 +0100
committerKai Köhne <kai.koehne@qt.io>2022-11-30 14:48:50 +0100
commita5de12f0d7dfef64453b7b29c33dc760b3cacec4 (patch)
treec55549f8c325eb0a3a3eb09c5ac76a31d763fdbd /examples/gui
parentd221ea609fdd9f5dc99f520391beddc057373278 (diff)
downloadqtbase-a5de12f0d7dfef64453b7b29c33dc760b3cacec4.tar.gz
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>
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/analogclock/CMakeLists.txt4
-rw-r--r--examples/gui/rasterwindow/CMakeLists.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt
index ddb1f8f93b..bae6083644 100644
--- a/examples/gui/analogclock/CMakeLists.txt
+++ b/examples/gui/analogclock/CMakeLists.txt
@@ -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
)
diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt
index c09da49779..1a7878cc0a 100644
--- a/examples/gui/rasterwindow/CMakeLists.txt
+++ b/examples/gui/rasterwindow/CMakeLists.txt
@@ -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
)