summaryrefslogtreecommitdiff
path: root/examples/vulkan
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/vulkan
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/vulkan')
-rw-r--r--examples/vulkan/hellovulkancubes/CMakeLists.txt2
-rw-r--r--examples/vulkan/hellovulkantexture/CMakeLists.txt2
-rw-r--r--examples/vulkan/hellovulkantriangle/CMakeLists.txt2
-rw-r--r--examples/vulkan/hellovulkanwidget/CMakeLists.txt2
-rw-r--r--examples/vulkan/hellovulkanwindow/CMakeLists.txt2
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/vulkan/hellovulkancubes/CMakeLists.txt b/examples/vulkan/hellovulkancubes/CMakeLists.txt
index fe23fcc0ed..51729de44f 100644
--- a/examples/vulkan/hellovulkancubes/CMakeLists.txt
+++ b/examples/vulkan/hellovulkancubes/CMakeLists.txt
@@ -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
diff --git a/examples/vulkan/hellovulkantexture/CMakeLists.txt b/examples/vulkan/hellovulkantexture/CMakeLists.txt
index b0ff1a16eb..e5e764dbfe 100644
--- a/examples/vulkan/hellovulkantexture/CMakeLists.txt
+++ b/examples/vulkan/hellovulkantexture/CMakeLists.txt
@@ -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
)
diff --git a/examples/vulkan/hellovulkantriangle/CMakeLists.txt b/examples/vulkan/hellovulkantriangle/CMakeLists.txt
index c6b6826c90..c040063097 100644
--- a/examples/vulkan/hellovulkantriangle/CMakeLists.txt
+++ b/examples/vulkan/hellovulkantriangle/CMakeLists.txt
@@ -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
)
diff --git a/examples/vulkan/hellovulkanwidget/CMakeLists.txt b/examples/vulkan/hellovulkanwidget/CMakeLists.txt
index f061686bf3..f9e5cb79f6 100644
--- a/examples/vulkan/hellovulkanwidget/CMakeLists.txt
+++ b/examples/vulkan/hellovulkanwidget/CMakeLists.txt
@@ -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
diff --git a/examples/vulkan/hellovulkanwindow/CMakeLists.txt b/examples/vulkan/hellovulkanwindow/CMakeLists.txt
index 17e84b7399..21f54d22eb 100644
--- a/examples/vulkan/hellovulkanwindow/CMakeLists.txt
+++ b/examples/vulkan/hellovulkanwindow/CMakeLists.txt
@@ -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
)