From 397b3725176780d8888f8499cac0127dbb7df2c7 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 26 Oct 2020 16:22:32 +0100 Subject: CMake: Regenerate examples to set the WIN32_EXECUTABLE property As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Task-number: QTBUG-86827 Change-Id: I7677449a26d51fa853bd67bab6b3b61afbd2b12f Reviewed-by: Joerg Bornemann --- examples/widgets/mainwindows/application/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/dockwidgets/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/mainwindow/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/mdi/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/menus/CMakeLists.txt | 4 ++++ examples/widgets/mainwindows/sdi/CMakeLists.txt | 4 ++++ 7 files changed, 28 insertions(+) (limited to 'examples/widgets/mainwindows') diff --git a/examples/widgets/mainwindows/application/CMakeLists.txt b/examples/widgets/mainwindows/application/CMakeLists.txt index 7142f3d8e5..53354d0460 100644 --- a/examples/widgets/mainwindows/application/CMakeLists.txt +++ b/examples/widgets/mainwindows/application/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(application main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(application PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(application PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt index 8ba50928cf..2affbef3b9 100644 --- a/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt +++ b/examples/widgets/mainwindows/dockwidgets/.prev_CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(dockwidgets main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(dockwidgets PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(dockwidgets PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt index 4d92f80a48..308960e547 100644 --- a/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt +++ b/examples/widgets/mainwindows/dockwidgets/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(dockwidgets main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(dockwidgets PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(dockwidgets PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt index e692d48f4a..88d1c7ddf7 100644 --- a/examples/widgets/mainwindows/mainwindow/CMakeLists.txt +++ b/examples/widgets/mainwindows/mainwindow/CMakeLists.txt @@ -25,6 +25,10 @@ qt_add_executable(mainwindow mainwindow.cpp mainwindow.h toolbar.cpp toolbar.h ) +set_target_properties(mainwindow PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mainwindow PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/mainwindows/mdi/CMakeLists.txt b/examples/widgets/mainwindows/mdi/CMakeLists.txt index 270f9f02ac..1c9aac9a33 100644 --- a/examples/widgets/mainwindows/mdi/CMakeLists.txt +++ b/examples/widgets/mainwindows/mdi/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(mdi mainwindow.cpp mainwindow.h mdichild.cpp mdichild.h ) +set_target_properties(mdi PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mdi PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/mainwindows/menus/CMakeLists.txt b/examples/widgets/mainwindows/menus/CMakeLists.txt index 7a37a69ec6..ba32b3086a 100644 --- a/examples/widgets/mainwindows/menus/CMakeLists.txt +++ b/examples/widgets/mainwindows/menus/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(menus main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(menus PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(menus PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/mainwindows/sdi/CMakeLists.txt b/examples/widgets/mainwindows/sdi/CMakeLists.txt index 84622b4062..111b127e38 100644 --- a/examples/widgets/mainwindows/sdi/CMakeLists.txt +++ b/examples/widgets/mainwindows/sdi/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(sdi main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(sdi PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(sdi PUBLIC Qt::Core Qt::Gui -- cgit v1.2.3