From 20d5e2d7efd458671e2830e94cd8bc30e14361e5 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 26 Oct 2020 17:09:47 +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: I46769fb543acb2cbeba122470b5e44ad478fbe4e Reviewed-by: Joerg Bornemann --- examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples/qml/tutorials/extending-qml/chapter2-methods') diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt index e3ac7eeff5..456c3965eb 100644 --- a/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt +++ b/examples/qml/tutorials/extending-qml/chapter2-methods/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(chapter2-methods main.cpp piechart.cpp piechart.h ) +set_target_properties(chapter2-methods PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_link_libraries(chapter2-methods PUBLIC Qt::Core Qt::Gui -- cgit v1.2.3