diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-26 16:22:32 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-27 12:49:39 +0100 |
commit | 397b3725176780d8888f8499cac0127dbb7df2c7 (patch) | |
tree | b7c38898d1a7d2a2278b010b034b9c605c785c50 /examples/widgets/tutorials/modelview | |
parent | 65fe5b2ce22797389aa074ef2c30e873a3c38d48 (diff) |
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 <joerg.bornemann@qt.io>
Diffstat (limited to 'examples/widgets/tutorials/modelview')
7 files changed, 28 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt index 857e8a0582..a9aa027352 100644 --- a/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/1_readonly/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(mv_readonly main.cpp mymodel.cpp mymodel.h ) +set_target_properties(mv_readonly PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_readonly PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt index 04871d4043..d17ac4f413 100644 --- a/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/2_formatting/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(mv_formatting main.cpp mymodel.cpp mymodel.h ) +set_target_properties(mv_formatting PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_formatting PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt index cd558a0b88..02305a8140 100644 --- a/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/3_changingmodel/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(mv_changingmodel main.cpp mymodel.cpp mymodel.h ) +set_target_properties(mv_changingmodel PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_changingmodel PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt index f317888cf7..1ff44691a1 100644 --- a/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/4_headers/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(mv_headers main.cpp mymodel.cpp mymodel.h ) +set_target_properties(mv_headers PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_headers PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt index 2a6b68e1c4..bcb0f06714 100644 --- a/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/5_edit/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(mv_edit mainwindow.cpp mainwindow.h mymodel.cpp mymodel.h ) +set_target_properties(mv_edit PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_edit PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt index 701d766322..d020349fa5 100644 --- a/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/6_treeview/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(mv_tree main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(mv_tree PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_tree PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt index 15033ccf0a..776b8d7688 100644 --- a/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt +++ b/examples/widgets/tutorials/modelview/7_selections/CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(mv_selections main.cpp mainwindow.cpp mainwindow.h ) +set_target_properties(mv_selections PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(mv_selections PUBLIC Qt::Core Qt::Gui |