summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-10-26 17:35:07 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-10-26 21:20:17 +0100
commit41cb814d3d1382ffef39411fd94da215fab2b518 (patch)
tree9a5c6951030f13717b78caa71600f64a36fff702 /examples
parente89fa56d822cbc96951b60821b85794f3832d620 (diff)
CMake: Regenerate examples to set the WIN32_EXECUTABLE property
As well as the MACOSX_BUNDLE properties as necessary. Task-number: QTBUG-87664 Change-Id: I2e238dff7bdda6c47dfbe28e2a560ee4c25f3d02 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/wayland/custom-extension/compositor/CMakeLists.txt4
-rw-r--r--examples/wayland/custom-extension/cpp-client/CMakeLists.txt4
-rw-r--r--examples/wayland/custom-extension/qml-client/CMakeLists.txt4
-rw-r--r--examples/wayland/hwlayer-compositor/CMakeLists.txt4
-rw-r--r--examples/wayland/ivi-compositor/CMakeLists.txt4
-rw-r--r--examples/wayland/minimal-cpp/.prev_CMakeLists.txt4
-rw-r--r--examples/wayland/minimal-cpp/CMakeLists.txt4
-rw-r--r--examples/wayland/minimal-qml/CMakeLists.txt4
-rw-r--r--examples/wayland/multi-output/CMakeLists.txt4
-rw-r--r--examples/wayland/multi-screen/CMakeLists.txt4
-rw-r--r--examples/wayland/overview-compositor/CMakeLists.txt4
-rw-r--r--examples/wayland/pure-qml/CMakeLists.txt4
-rw-r--r--examples/wayland/server-buffer/compositor/CMakeLists.txt4
-rw-r--r--examples/wayland/server-buffer/cpp-client/CMakeLists.txt4
-rw-r--r--examples/wayland/server-side-decoration/CMakeLists.txt4
-rw-r--r--examples/wayland/spanning-screens/CMakeLists.txt4
-rw-r--r--examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt4
-rw-r--r--examples/wayland/texture-sharing/qml-client/CMakeLists.txt4
18 files changed, 72 insertions, 0 deletions
diff --git a/examples/wayland/custom-extension/compositor/CMakeLists.txt b/examples/wayland/custom-extension/compositor/CMakeLists.txt
index 99f880357..de5eafd96 100644
--- a/examples/wayland/custom-extension/compositor/CMakeLists.txt
+++ b/examples/wayland/custom-extension/compositor/CMakeLists.txt
@@ -29,6 +29,10 @@ qt6_generate_wayland_protocol_server_sources(custom-extension-compositor
FILES
${CMAKE_CURRENT_SOURCE_DIR}/../protocol/custom.xml
)
+set_target_properties(custom-extension-compositor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(custom-extension-compositor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/custom-extension/cpp-client/CMakeLists.txt b/examples/wayland/custom-extension/cpp-client/CMakeLists.txt
index e2afa3cf4..3cb61a54d 100644
--- a/examples/wayland/custom-extension/cpp-client/CMakeLists.txt
+++ b/examples/wayland/custom-extension/cpp-client/CMakeLists.txt
@@ -28,6 +28,10 @@ qt6_generate_wayland_protocol_client_sources(custom-extension-cpp-client
FILES
${CMAKE_CURRENT_SOURCE_DIR}/../protocol/custom.xml
)
+set_target_properties(custom-extension-cpp-client PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(custom-extension-cpp-client PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/custom-extension/qml-client/CMakeLists.txt b/examples/wayland/custom-extension/qml-client/CMakeLists.txt
index 010841e39..7b68ecbc1 100644
--- a/examples/wayland/custom-extension/qml-client/CMakeLists.txt
+++ b/examples/wayland/custom-extension/qml-client/CMakeLists.txt
@@ -30,6 +30,10 @@ qt6_generate_wayland_protocol_client_sources(custom-extension-qml-client
FILES
${CMAKE_CURRENT_SOURCE_DIR}/../protocol/custom.xml
)
+set_target_properties(custom-extension-qml-client PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(custom-extension-qml-client PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/hwlayer-compositor/CMakeLists.txt b/examples/wayland/hwlayer-compositor/CMakeLists.txt
index 4dfc7969e..079a0aa74 100644
--- a/examples/wayland/hwlayer-compositor/CMakeLists.txt
+++ b/examples/wayland/hwlayer-compositor/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(hwlayer-compositor
main.cpp
)
+set_target_properties(hwlayer-compositor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(hwlayer-compositor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/ivi-compositor/CMakeLists.txt b/examples/wayland/ivi-compositor/CMakeLists.txt
index b1e5226da..0374c1e45 100644
--- a/examples/wayland/ivi-compositor/CMakeLists.txt
+++ b/examples/wayland/ivi-compositor/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(ivi-compositor
main.cpp
)
+set_target_properties(ivi-compositor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(ivi-compositor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/minimal-cpp/.prev_CMakeLists.txt b/examples/wayland/minimal-cpp/.prev_CMakeLists.txt
index 897c8a34f..a57b3c7f5 100644
--- a/examples/wayland/minimal-cpp/.prev_CMakeLists.txt
+++ b/examples/wayland/minimal-cpp/.prev_CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(minimal-cpp
main.cpp
window.cpp window.h
)
+set_target_properties(minimal-cpp PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(minimal-cpp PUBLIC
../../include
)
diff --git a/examples/wayland/minimal-cpp/CMakeLists.txt b/examples/wayland/minimal-cpp/CMakeLists.txt
index 535ec131c..cbaa9dc26 100644
--- a/examples/wayland/minimal-cpp/CMakeLists.txt
+++ b/examples/wayland/minimal-cpp/CMakeLists.txt
@@ -24,6 +24,10 @@ qt_add_executable(minimal-cpp
main.cpp
window.cpp window.h
)
+set_target_properties(minimal-cpp PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_include_directories(minimal-cpp PUBLIC
../../include
)
diff --git a/examples/wayland/minimal-qml/CMakeLists.txt b/examples/wayland/minimal-qml/CMakeLists.txt
index e7d8359c0..f19d3e931 100644
--- a/examples/wayland/minimal-qml/CMakeLists.txt
+++ b/examples/wayland/minimal-qml/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(minimal-qml
main.cpp
)
+set_target_properties(minimal-qml PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(minimal-qml PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/multi-output/CMakeLists.txt b/examples/wayland/multi-output/CMakeLists.txt
index 56274057f..2f4019f69 100644
--- a/examples/wayland/multi-output/CMakeLists.txt
+++ b/examples/wayland/multi-output/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(multi-output
main.cpp
)
+set_target_properties(multi-output PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(multi-output PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/multi-screen/CMakeLists.txt b/examples/wayland/multi-screen/CMakeLists.txt
index 4be67cf79..d9c59f3fd 100644
--- a/examples/wayland/multi-screen/CMakeLists.txt
+++ b/examples/wayland/multi-screen/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(multi-screen
main.cpp
)
+set_target_properties(multi-screen PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(multi-screen PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/overview-compositor/CMakeLists.txt b/examples/wayland/overview-compositor/CMakeLists.txt
index 28b4a4730..7e320702e 100644
--- a/examples/wayland/overview-compositor/CMakeLists.txt
+++ b/examples/wayland/overview-compositor/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(overview-compositor
main.cpp
)
+set_target_properties(overview-compositor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(overview-compositor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/pure-qml/CMakeLists.txt b/examples/wayland/pure-qml/CMakeLists.txt
index 043f0dec2..bda536bfa 100644
--- a/examples/wayland/pure-qml/CMakeLists.txt
+++ b/examples/wayland/pure-qml/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(pure-qml
main.cpp
)
+set_target_properties(pure-qml PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(pure-qml PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/server-buffer/compositor/CMakeLists.txt b/examples/wayland/server-buffer/compositor/CMakeLists.txt
index bd0de291b..513e73bb0 100644
--- a/examples/wayland/server-buffer/compositor/CMakeLists.txt
+++ b/examples/wayland/server-buffer/compositor/CMakeLists.txt
@@ -29,6 +29,10 @@ qt6_generate_wayland_protocol_server_sources(compositor
FILES
${CMAKE_CURRENT_SOURCE_DIR}/../share-buffer.xml
)
+set_target_properties(compositor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(compositor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/server-buffer/cpp-client/CMakeLists.txt b/examples/wayland/server-buffer/cpp-client/CMakeLists.txt
index 03a72f071..438bd3a5e 100644
--- a/examples/wayland/server-buffer/cpp-client/CMakeLists.txt
+++ b/examples/wayland/server-buffer/cpp-client/CMakeLists.txt
@@ -29,6 +29,10 @@ qt6_generate_wayland_protocol_client_sources(server-buffer-cpp-client
FILES
${CMAKE_CURRENT_SOURCE_DIR}/../share-buffer.xml
)
+set_target_properties(server-buffer-cpp-client PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(server-buffer-cpp-client PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/server-side-decoration/CMakeLists.txt b/examples/wayland/server-side-decoration/CMakeLists.txt
index eeb2939d4..dc95b805f 100644
--- a/examples/wayland/server-side-decoration/CMakeLists.txt
+++ b/examples/wayland/server-side-decoration/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(server-side-decoration
main.cpp
)
+set_target_properties(server-side-decoration PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(server-side-decoration PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/spanning-screens/CMakeLists.txt b/examples/wayland/spanning-screens/CMakeLists.txt
index 01589ae16..c99110b01 100644
--- a/examples/wayland/spanning-screens/CMakeLists.txt
+++ b/examples/wayland/spanning-screens/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Qml)
qt_add_executable(spanning-screens
main.cpp
)
+set_target_properties(spanning-screens PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(spanning-screens PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt b/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt
index eb157a441..0ca81f26f 100644
--- a/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt
+++ b/examples/wayland/texture-sharing/custom-compositor/CMakeLists.txt
@@ -23,6 +23,10 @@ find_package(Qt6 COMPONENTS WaylandCompositor)
qt_add_executable(texture-sharing-custom-compositor
main.cpp
)
+set_target_properties(texture-sharing-custom-compositor PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(texture-sharing-custom-compositor PUBLIC
Qt::Core
Qt::Gui
diff --git a/examples/wayland/texture-sharing/qml-client/CMakeLists.txt b/examples/wayland/texture-sharing/qml-client/CMakeLists.txt
index 40a477720..76161a786 100644
--- a/examples/wayland/texture-sharing/qml-client/CMakeLists.txt
+++ b/examples/wayland/texture-sharing/qml-client/CMakeLists.txt
@@ -22,6 +22,10 @@ find_package(Qt6 COMPONENTS Quick)
qt_add_executable(qml-client
main.cpp
)
+set_target_properties(qml-client PROPERTIES
+ WIN32_EXECUTABLE TRUE
+ MACOSX_BUNDLE TRUE
+)
target_link_libraries(qml-client PUBLIC
Qt::Core
Qt::Gui