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/widgets/painting/deform | |
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/widgets/painting/deform')
-rw-r--r-- | examples/widgets/painting/deform/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/widgets/painting/deform/CMakeLists.txt b/examples/widgets/painting/deform/CMakeLists.txt index a4468c6699..529dd1ec3a 100644 --- a/examples/widgets/painting/deform/CMakeLists.txt +++ b/examples/widgets/painting/deform/CMakeLists.txt @@ -28,7 +28,7 @@ set_target_properties(deform PROPERTIES MACOSX_BUNDLE TRUE ) -target_include_directories(deform PUBLIC +target_include_directories(deform PRIVATE ../shared ) @@ -36,7 +36,7 @@ if(NOT TARGET painting_shared::painting_shared) include(../shared/use_lib.cmake) endif() -target_link_libraries(deform PUBLIC +target_link_libraries(deform PRIVATE Qt6::Core Qt6::Gui Qt6::Widgets @@ -105,11 +105,11 @@ qt_add_resources(deform "deform" # remove files from ../shared #if(QT_FEATURE_opengl) - #target_sources(affine PUBLIC + #target_sources(affine PRIVATE #../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h #) - #target_link_libraries(affine PUBLIC + #target_link_libraries(affine PRIVATE #Qt6::OpenGL #) #endif() |