summaryrefslogtreecommitdiffstats
path: root/examples/opengl
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/opengl
parentd221ea609fdd9f5dc99f520391beddc057373278 (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/opengl')
-rw-r--r--examples/opengl/2dpainting/CMakeLists.txt2
-rw-r--r--examples/opengl/computegles31/CMakeLists.txt2
-rw-r--r--examples/opengl/contextinfo/CMakeLists.txt2
-rw-r--r--examples/opengl/cube/CMakeLists.txt2
-rw-r--r--examples/opengl/hellogl2/CMakeLists.txt2
-rw-r--r--examples/opengl/hellogles3/CMakeLists.txt2
-rw-r--r--examples/opengl/hellowindow/CMakeLists.txt2
-rw-r--r--examples/opengl/openglwindow/CMakeLists.txt2
-rw-r--r--examples/opengl/paintedwindow/CMakeLists.txt2
-rw-r--r--examples/opengl/qopenglwidget/CMakeLists.txt2
-rw-r--r--examples/opengl/qopenglwindow/CMakeLists.txt2
-rw-r--r--examples/opengl/textures/CMakeLists.txt2
-rw-r--r--examples/opengl/threadedqopenglwidget/CMakeLists.txt2
13 files changed, 13 insertions, 13 deletions
diff --git a/examples/opengl/2dpainting/CMakeLists.txt b/examples/opengl/2dpainting/CMakeLists.txt
index c6f320ffe7..eeaa9cb726 100644
--- a/examples/opengl/2dpainting/CMakeLists.txt
+++ b/examples/opengl/2dpainting/CMakeLists.txt
@@ -27,7 +27,7 @@ set_target_properties(2dpainting PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(2dpainting PUBLIC
+target_link_libraries(2dpainting PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/computegles31/CMakeLists.txt b/examples/opengl/computegles31/CMakeLists.txt
index ccbf158036..6a87d5751e 100644
--- a/examples/opengl/computegles31/CMakeLists.txt
+++ b/examples/opengl/computegles31/CMakeLists.txt
@@ -24,7 +24,7 @@ set_target_properties(computegles31 PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(computegles31 PUBLIC
+target_link_libraries(computegles31 PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/contextinfo/CMakeLists.txt b/examples/opengl/contextinfo/CMakeLists.txt
index 7b49a02a53..8dfd412408 100644
--- a/examples/opengl/contextinfo/CMakeLists.txt
+++ b/examples/opengl/contextinfo/CMakeLists.txt
@@ -25,7 +25,7 @@ set_target_properties(contextinfo PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(contextinfo PUBLIC
+target_link_libraries(contextinfo PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/cube/CMakeLists.txt b/examples/opengl/cube/CMakeLists.txt
index ea999ed4e5..0446a5d52e 100644
--- a/examples/opengl/cube/CMakeLists.txt
+++ b/examples/opengl/cube/CMakeLists.txt
@@ -25,7 +25,7 @@ set_target_properties(cube PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(cube PUBLIC
+target_link_libraries(cube PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/hellogl2/CMakeLists.txt b/examples/opengl/hellogl2/CMakeLists.txt
index f15c5ffe85..8846fcc23e 100644
--- a/examples/opengl/hellogl2/CMakeLists.txt
+++ b/examples/opengl/hellogl2/CMakeLists.txt
@@ -27,7 +27,7 @@ set_target_properties(hellogl2 PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(hellogl2 PUBLIC
+target_link_libraries(hellogl2 PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/hellogles3/CMakeLists.txt b/examples/opengl/hellogles3/CMakeLists.txt
index aa54ec9b93..917f64568c 100644
--- a/examples/opengl/hellogles3/CMakeLists.txt
+++ b/examples/opengl/hellogles3/CMakeLists.txt
@@ -25,7 +25,7 @@ set_target_properties(hellogles3 PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(hellogles3 PUBLIC
+target_link_libraries(hellogles3 PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/hellowindow/CMakeLists.txt b/examples/opengl/hellowindow/CMakeLists.txt
index 3ac623a99a..551cf9faef 100644
--- a/examples/opengl/hellowindow/CMakeLists.txt
+++ b/examples/opengl/hellowindow/CMakeLists.txt
@@ -24,7 +24,7 @@ set_target_properties(hellowindow PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(hellowindow PUBLIC
+target_link_libraries(hellowindow PRIVATE
Qt6::Core
Qt6::CorePrivate
Qt6::Gui
diff --git a/examples/opengl/openglwindow/CMakeLists.txt b/examples/opengl/openglwindow/CMakeLists.txt
index a22f92dcd8..3558ce549d 100644
--- a/examples/opengl/openglwindow/CMakeLists.txt
+++ b/examples/opengl/openglwindow/CMakeLists.txt
@@ -24,7 +24,7 @@ set_target_properties(openglwindow PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(openglwindow PUBLIC
+target_link_libraries(openglwindow PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/paintedwindow/CMakeLists.txt b/examples/opengl/paintedwindow/CMakeLists.txt
index 53ae5a01e2..b5a005242b 100644
--- a/examples/opengl/paintedwindow/CMakeLists.txt
+++ b/examples/opengl/paintedwindow/CMakeLists.txt
@@ -24,7 +24,7 @@ set_target_properties(paintedwindow PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(paintedwindow PUBLIC
+target_link_libraries(paintedwindow PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/qopenglwidget/CMakeLists.txt b/examples/opengl/qopenglwidget/CMakeLists.txt
index 293d0b5037..4a0da689cd 100644
--- a/examples/opengl/qopenglwidget/CMakeLists.txt
+++ b/examples/opengl/qopenglwidget/CMakeLists.txt
@@ -26,7 +26,7 @@ set_target_properties(qopenglwidget PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(qopenglwidget PUBLIC
+target_link_libraries(qopenglwidget PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/qopenglwindow/CMakeLists.txt b/examples/opengl/qopenglwindow/CMakeLists.txt
index fd9f59b63e..f1c407ce17 100644
--- a/examples/opengl/qopenglwindow/CMakeLists.txt
+++ b/examples/opengl/qopenglwindow/CMakeLists.txt
@@ -24,7 +24,7 @@ set_target_properties(qopenglwindow PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(qopenglwindow PUBLIC
+target_link_libraries(qopenglwindow PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/textures/CMakeLists.txt b/examples/opengl/textures/CMakeLists.txt
index bf22cda67f..5103782381 100644
--- a/examples/opengl/textures/CMakeLists.txt
+++ b/examples/opengl/textures/CMakeLists.txt
@@ -25,7 +25,7 @@ set_target_properties(textures PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(textures PUBLIC
+target_link_libraries(textures PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL
diff --git a/examples/opengl/threadedqopenglwidget/CMakeLists.txt b/examples/opengl/threadedqopenglwidget/CMakeLists.txt
index 23cedd81bd..6efecc4d07 100644
--- a/examples/opengl/threadedqopenglwidget/CMakeLists.txt
+++ b/examples/opengl/threadedqopenglwidget/CMakeLists.txt
@@ -26,7 +26,7 @@ set_target_properties(threadedqopenglwidget PROPERTIES
MACOSX_BUNDLE TRUE
)
-target_link_libraries(threadedqopenglwidget PUBLIC
+target_link_libraries(threadedqopenglwidget PRIVATE
Qt6::Core
Qt6::Gui
Qt6::OpenGL