summaryrefslogtreecommitdiffstats
path: root/examples/widgets/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/desktop')
-rw-r--r--examples/widgets/desktop/screenshot/CMakeLists.txt4
-rw-r--r--examples/widgets/desktop/systray/CMakeLists.txt4
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/widgets/desktop/screenshot/CMakeLists.txt b/examples/widgets/desktop/screenshot/CMakeLists.txt
index 979dee6ca7..2dc1b9909e 100644
--- a/examples/widgets/desktop/screenshot/CMakeLists.txt
+++ b/examples/widgets/desktop/screenshot/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(screenshot
main.cpp
screenshot.cpp screenshot.h
)
+set_target_properties(screenshot PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(screenshot PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/widgets/desktop/systray/CMakeLists.txt b/examples/widgets/desktop/systray/CMakeLists.txt
index 7c813a8667..e1d1ca526b 100644
--- a/examples/widgets/desktop/systray/CMakeLists.txt
+++ b/examples/widgets/desktop/systray/CMakeLists.txt
@@ -23,6 +23,10 @@ qt_add_executable(systray
main.cpp
window.cpp window.h
)
+set_target_properties(systray PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(systray PUBLIC
Qt::Core
Qt::Gui