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/gui/analogclock/.prev_CMakeLists.txt | 4 ++++ examples/gui/analogclock/CMakeLists.txt | 4 ++++ examples/gui/rasterwindow/.prev_CMakeLists.txt | 4 ++++ examples/gui/rasterwindow/CMakeLists.txt | 4 ++++ 4 files changed, 16 insertions(+) (limited to 'examples/gui') diff --git a/examples/gui/analogclock/.prev_CMakeLists.txt b/examples/gui/analogclock/.prev_CMakeLists.txt index 1a0a5fdf97..90c6091d68 100644 --- a/examples/gui/analogclock/.prev_CMakeLists.txt +++ b/examples/gui/analogclock/.prev_CMakeLists.txt @@ -22,6 +22,10 @@ qt_add_executable(analogclock ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h main.cpp ) +set_target_properties(analogclock PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_include_directories(analogclock PUBLIC ../rasterwindow ) diff --git a/examples/gui/analogclock/CMakeLists.txt b/examples/gui/analogclock/CMakeLists.txt index 191facbc78..21a5fc239e 100644 --- a/examples/gui/analogclock/CMakeLists.txt +++ b/examples/gui/analogclock/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(gui_analogclock # special case: renamed target ../rasterwindow/rasterwindow.cpp ../rasterwindow/rasterwindow.h main.cpp ) +set_target_properties(gui_analogclock PROPERTIES # special case + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_include_directories(gui_analogclock PUBLIC # special case ../rasterwindow ) diff --git a/examples/gui/rasterwindow/.prev_CMakeLists.txt b/examples/gui/rasterwindow/.prev_CMakeLists.txt index 53269112f6..dddb5586db 100644 --- a/examples/gui/rasterwindow/.prev_CMakeLists.txt +++ b/examples/gui/rasterwindow/.prev_CMakeLists.txt @@ -22,6 +22,10 @@ qt_add_executable(rasterwindow main.cpp rasterwindow.cpp rasterwindow.h ) +set_target_properties(rasterwindow PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_include_directories(rasterwindow PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ) diff --git a/examples/gui/rasterwindow/CMakeLists.txt b/examples/gui/rasterwindow/CMakeLists.txt index 26884471d1..845b52fc3e 100644 --- a/examples/gui/rasterwindow/CMakeLists.txt +++ b/examples/gui/rasterwindow/CMakeLists.txt @@ -24,6 +24,10 @@ qt_add_executable(rasterwindow main.cpp rasterwindow.cpp rasterwindow.h ) +set_target_properties(rasterwindow PROPERTIES + WIN32_EXECUTABLE TRUE + MACOSX_BUNDLE TRUE +) target_include_directories(rasterwindow PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ) -- cgit v1.2.3