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/corelib | |
parent | d221ea609fdd9f5dc99f520391beddc057373278 (diff) | |
download | qtbase-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/corelib')
17 files changed, 17 insertions, 17 deletions
diff --git a/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt b/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt index 28bf806c4f..c4a2e5fcfc 100644 --- a/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt +++ b/examples/corelib/bindableproperties/bindablesubscription/CMakeLists.txt @@ -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 diff --git a/examples/corelib/bindableproperties/subscription/CMakeLists.txt b/examples/corelib/bindableproperties/subscription/CMakeLists.txt index 116eb2d9ea..0dd027fc24 100644 --- a/examples/corelib/bindableproperties/subscription/CMakeLists.txt +++ b/examples/corelib/bindableproperties/subscription/CMakeLists.txt @@ -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 diff --git a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt index e8c434df08..b3337e1f46 100644 --- a/examples/corelib/ipc/localfortuneclient/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneclient/CMakeLists.txt @@ -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 diff --git a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt index 75ba716c37..411fc04eb5 100644 --- a/examples/corelib/ipc/localfortuneserver/CMakeLists.txt +++ b/examples/corelib/ipc/localfortuneserver/CMakeLists.txt @@ -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 diff --git a/examples/corelib/ipc/sharedmemory/CMakeLists.txt b/examples/corelib/ipc/sharedmemory/CMakeLists.txt index a3d9acee1d..21f5ff339b 100644 --- a/examples/corelib/ipc/sharedmemory/CMakeLists.txt +++ b/examples/corelib/ipc/sharedmemory/CMakeLists.txt @@ -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 diff --git a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt index 4865847fb7..c03ccae085 100644 --- a/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt +++ b/examples/corelib/mimetypes/mimetypebrowser/CMakeLists.txt @@ -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 diff --git a/examples/corelib/permissions/CMakeLists.txt b/examples/corelib/permissions/CMakeLists.txt index e0e4779097..e0fcf79bea 100644 --- a/examples/corelib/permissions/CMakeLists.txt +++ b/examples/corelib/permissions/CMakeLists.txt @@ -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 diff --git a/examples/corelib/serialization/cbordump/CMakeLists.txt b/examples/corelib/serialization/cbordump/CMakeLists.txt index 2b175b1805..813b02b9c0 100644 --- a/examples/corelib/serialization/cbordump/CMakeLists.txt +++ b/examples/corelib/serialization/cbordump/CMakeLists.txt @@ -18,7 +18,7 @@ qt_add_executable(cbordump main.cpp ) -target_link_libraries(cbordump PUBLIC +target_link_libraries(cbordump PRIVATE Qt6::Core ) diff --git a/examples/corelib/serialization/convert/CMakeLists.txt b/examples/corelib/serialization/convert/CMakeLists.txt index 9d76c589ce..5a10a78a5a 100644 --- a/examples/corelib/serialization/convert/CMakeLists.txt +++ b/examples/corelib/serialization/convert/CMakeLists.txt @@ -25,7 +25,7 @@ qt_add_executable(convert xmlconverter.cpp xmlconverter.h ) -target_link_libraries(convert PUBLIC +target_link_libraries(convert PRIVATE Qt6::Core ) diff --git a/examples/corelib/serialization/savegame/CMakeLists.txt b/examples/corelib/serialization/savegame/CMakeLists.txt index 723a9e66f0..8871a9d687 100644 --- a/examples/corelib/serialization/savegame/CMakeLists.txt +++ b/examples/corelib/serialization/savegame/CMakeLists.txt @@ -21,7 +21,7 @@ qt_add_executable(savegame main.cpp ) -target_link_libraries(savegame PUBLIC +target_link_libraries(savegame PRIVATE Qt6::Core ) diff --git a/examples/corelib/threads/mandelbrot/CMakeLists.txt b/examples/corelib/threads/mandelbrot/CMakeLists.txt index 38028e0188..9c5a553966 100644 --- a/examples/corelib/threads/mandelbrot/CMakeLists.txt +++ b/examples/corelib/threads/mandelbrot/CMakeLists.txt @@ -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 diff --git a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt index 8cdef289e8..5a247bacc9 100644 --- a/examples/corelib/threads/queuedcustomtype/CMakeLists.txt +++ b/examples/corelib/threads/queuedcustomtype/CMakeLists.txt @@ -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 diff --git a/examples/corelib/threads/semaphores/CMakeLists.txt b/examples/corelib/threads/semaphores/CMakeLists.txt index 61101ec6c4..bccf6e1e37 100644 --- a/examples/corelib/threads/semaphores/CMakeLists.txt +++ b/examples/corelib/threads/semaphores/CMakeLists.txt @@ -18,7 +18,7 @@ qt_add_executable(semaphores semaphores.cpp ) -target_link_libraries(semaphores PUBLIC +target_link_libraries(semaphores PRIVATE Qt6::Core ) diff --git a/examples/corelib/threads/waitconditions/CMakeLists.txt b/examples/corelib/threads/waitconditions/CMakeLists.txt index 13622c522a..45818e2bfc 100644 --- a/examples/corelib/threads/waitconditions/CMakeLists.txt +++ b/examples/corelib/threads/waitconditions/CMakeLists.txt @@ -18,7 +18,7 @@ qt_add_executable(waitconditions waitconditions.cpp ) -target_link_libraries(waitconditions PUBLIC +target_link_libraries(waitconditions PRIVATE Qt6::Core ) diff --git a/examples/corelib/tools/contiguouscache/CMakeLists.txt b/examples/corelib/tools/contiguouscache/CMakeLists.txt index c2b52f1426..1a23099968 100644 --- a/examples/corelib/tools/contiguouscache/CMakeLists.txt +++ b/examples/corelib/tools/contiguouscache/CMakeLists.txt @@ -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 diff --git a/examples/corelib/tools/customtype/CMakeLists.txt b/examples/corelib/tools/customtype/CMakeLists.txt index d03b961f4c..21c9003f56 100644 --- a/examples/corelib/tools/customtype/CMakeLists.txt +++ b/examples/corelib/tools/customtype/CMakeLists.txt @@ -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 diff --git a/examples/corelib/tools/customtypesending/CMakeLists.txt b/examples/corelib/tools/customtypesending/CMakeLists.txt index 8a72ef091b..a993d81160 100644 --- a/examples/corelib/tools/customtypesending/CMakeLists.txt +++ b/examples/corelib/tools/customtypesending/CMakeLists.txt @@ -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 |