diff options
author | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-05-16 14:51:26 +0200 |
---|---|---|
committer | Amir Masoud Abdol <amir.abdol@qt.io> | 2023-05-16 16:08:11 +0200 |
commit | d6c16ee66aa9fa92b6a0373a0b5eea1587170145 (patch) | |
tree | bc2deb9d3d03211316ba5e7ce551b290371d49b7 | |
parent | a13afbaf12862be71bcbba94c205a1130e697c5e (diff) | |
download | qtdeclarative-d6c16ee66aa9fa92b6a0373a0b5eea1587170145.tar.gz |
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 <alexey.edelev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | examples/quick/imageprovider/CMakeLists.txt | 11 |
1 files 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 |