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/notepad | |
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/notepad')
-rw-r--r-- | examples/widgets/tutorials/notepad/.prev_CMakeLists.txt | 4 | ||||
-rw-r--r-- | examples/widgets/tutorials/notepad/CMakeLists.txt | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt index 120cc3ba7a..119ca9d6cf 100644 --- a/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt +++ b/examples/widgets/tutorials/notepad/.prev_CMakeLists.txt @@ -23,6 +23,10 @@ qt_add_executable(notepad main.cpp notepad.cpp notepad.h notepad.ui ) +set_target_properties(notepad PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(notepad PUBLIC Qt::Core Qt::Gui diff --git a/examples/widgets/tutorials/notepad/CMakeLists.txt b/examples/widgets/tutorials/notepad/CMakeLists.txt index 9a683791a4..267c3583b7 100644 --- a/examples/widgets/tutorials/notepad/CMakeLists.txt +++ b/examples/widgets/tutorials/notepad/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(notepad main.cpp notepad.cpp notepad.h notepad.ui ) +set_target_properties(notepad PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(notepad PUBLIC Qt::Core Qt::Gui |