summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-02-13 23:27:47 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-02-14 14:55:04 +0100
commitd4c8ad79c4d815b1a98f53f829aab38286d643bd (patch)
tree0358b765b95b8e39b24af61e6dcbf0233ce964c2 /examples
parent141ec5c6cc71994a49fe64ca9ed77adc2b709a36 (diff)
parentc53ee1f054fee2d6092c5e24b5b6b131dbd0457b (diff)
Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev"
Diffstat (limited to 'examples')
-rw-r--r--examples/opengl/hellowindow/CMakeLists.txt7
-rw-r--r--examples/qpa/windows/CMakeLists.txt7
2 files changed, 4 insertions, 10 deletions
diff --git a/examples/opengl/hellowindow/CMakeLists.txt b/examples/opengl/hellowindow/CMakeLists.txt
index 95f627be9d..58bd3fc362 100644
--- a/examples/opengl/hellowindow/CMakeLists.txt
+++ b/examples/opengl/hellowindow/CMakeLists.txt
@@ -18,14 +18,11 @@ add_qt_gui_executable(hellowindow
hellowindow.cpp hellowindow.h
main.cpp
)
-target_link_libraries(hellowindow PRIVATE
- Qt::CorePrivate
- Qt::GuiPrivate
-)
-
target_link_libraries(hellowindow PUBLIC
Qt::Core
+ Qt::CorePrivate
Qt::Gui
+ Qt::GuiPrivate
)
install(TARGETS hellowindow
diff --git a/examples/qpa/windows/CMakeLists.txt b/examples/qpa/windows/CMakeLists.txt
index 6f9bbe7534..4eeab0e3bc 100644
--- a/examples/qpa/windows/CMakeLists.txt
+++ b/examples/qpa/windows/CMakeLists.txt
@@ -18,14 +18,11 @@ add_executable(windows
main.cpp
window.cpp window.h
)
-target_link_libraries(windows PRIVATE
- Qt::CorePrivate
- Qt::GuiPrivate
-)
-
target_link_libraries(windows PUBLIC
Qt::Core
+ Qt::CorePrivate
Qt::Gui
+ Qt::GuiPrivate
)
install(TARGETS windows