From a5de12f0d7dfef64453b7b29c33dc760b3cacec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Mon, 21 Nov 2022 12:03:41 +0100 Subject: Examples: Use PRIVATE CMake linkage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We (almost) only build apps, for which PRIVATE linkage makes more sense. Change-Id: I09a509c3fb33a00cdfdede687b3f95d638f42091 Reviewed-by: Jörg Bornemann --- examples/qtconcurrent/imagescaling/CMakeLists.txt | 2 +- examples/qtconcurrent/map/CMakeLists.txt | 2 +- examples/qtconcurrent/progressdialog/CMakeLists.txt | 2 +- examples/qtconcurrent/runfunction/CMakeLists.txt | 2 +- examples/qtconcurrent/wordcount/CMakeLists.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/qtconcurrent') diff --git a/examples/qtconcurrent/imagescaling/CMakeLists.txt b/examples/qtconcurrent/imagescaling/CMakeLists.txt index 4ef3d5623e..9c63667a61 100644 --- a/examples/qtconcurrent/imagescaling/CMakeLists.txt +++ b/examples/qtconcurrent/imagescaling/CMakeLists.txt @@ -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 diff --git a/examples/qtconcurrent/map/CMakeLists.txt b/examples/qtconcurrent/map/CMakeLists.txt index 58caf882bc..9546e19773 100644 --- a/examples/qtconcurrent/map/CMakeLists.txt +++ b/examples/qtconcurrent/map/CMakeLists.txt @@ -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 diff --git a/examples/qtconcurrent/progressdialog/CMakeLists.txt b/examples/qtconcurrent/progressdialog/CMakeLists.txt index c021f80193..5609572d95 100644 --- a/examples/qtconcurrent/progressdialog/CMakeLists.txt +++ b/examples/qtconcurrent/progressdialog/CMakeLists.txt @@ -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 diff --git a/examples/qtconcurrent/runfunction/CMakeLists.txt b/examples/qtconcurrent/runfunction/CMakeLists.txt index 7793004519..2a05ab238b 100644 --- a/examples/qtconcurrent/runfunction/CMakeLists.txt +++ b/examples/qtconcurrent/runfunction/CMakeLists.txt @@ -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 diff --git a/examples/qtconcurrent/wordcount/CMakeLists.txt b/examples/qtconcurrent/wordcount/CMakeLists.txt index 1e62a0e3a2..7cb5063963 100644 --- a/examples/qtconcurrent/wordcount/CMakeLists.txt +++ b/examples/qtconcurrent/wordcount/CMakeLists.txt @@ -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 -- cgit v1.2.3