diff options
author | Kai Köhne <kai.koehne@qt.io> | 2022-11-21 12:03:41 +0100 |
---|---|---|
committer | Kai Köhne <kai.koehne@qt.io> | 2022-11-30 14:48:50 +0100 |
commit | a5de12f0d7dfef64453b7b29c33dc760b3cacec4 (patch) | |
tree | c55549f8c325eb0a3a3eb09c5ac76a31d763fdbd /examples/qtconcurrent | |
parent | d221ea609fdd9f5dc99f520391beddc057373278 (diff) |
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/qtconcurrent')
-rw-r--r-- | examples/qtconcurrent/imagescaling/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/qtconcurrent/map/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/qtconcurrent/progressdialog/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/qtconcurrent/runfunction/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/qtconcurrent/wordcount/CMakeLists.txt | 2 |
5 files changed, 5 insertions, 5 deletions
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 |