From d6c16ee66aa9fa92b6a0373a0b5eea1587170145 Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Tue, 16 May 2023 14:51:26 +0200 Subject: Improve qmlimageproviderplugin's CMakeLists.txt There is no executable, so setting `WIN32_EXECUTABLE` or `MACOSX_BUNDLE` is not necessary. I also moved the source file under `qt6_add_qml_module`. I feel this example is not complete, or need some more updates. Pick-to: 6.5 Change-Id: Ic79690e241a8a8a98d35c96e1aa57dddcbc29153 Reviewed-by: Alexey Edelev Reviewed-by: Fabian Kosmale --- examples/quick/imageprovider/CMakeLists.txt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/quick/imageprovider/CMakeLists.txt b/examples/quick/imageprovider/CMakeLists.txt index 39d5e23bb3..52d3c9b135 100644 --- a/examples/quick/imageprovider/CMakeLists.txt +++ b/examples/quick/imageprovider/CMakeLists.txt @@ -23,15 +23,8 @@ qt6_add_qml_module(qmlimageproviderplugin NO_PLUGIN_OPTIONAL NO_GENERATE_PLUGIN_SOURCE CLASS_NAME ImageProviderExtensionPlugin -) - -target_sources(qmlimageproviderplugin PRIVATE - imageprovider.cpp -) - -set_target_properties(qmlimageproviderplugin PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE + SOURCES + imageprovider.cpp ) target_link_libraries(qmlimageproviderplugin PUBLIC -- cgit v1.2.1