diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-01-29 14:23:44 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-01-29 14:30:42 +0000 |
commit | 563dfa0812b4e0a8116533c0b3a2be402475b05a (patch) | |
tree | 6e4c868c06a8695531145844adda6d3cd65a0b66 /examples | |
parent | bebce1c061f1791cc0134da2c3cb8da9709f5555 (diff) |
Use qt_add_executable for photosurface example
This fails to build an apk on Android, it must use qt_add_executable
which handles some extra stuff internally.
Fixes: QTBUG-90747
Pick-to: 6.0
Change-Id: I600ae4f9fb5a4ad6bbb8d5c3a06d95314ec0552e
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/demos/photosurface/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/demos/photosurface/CMakeLists.txt b/examples/demos/photosurface/CMakeLists.txt index e42f45ffe..d885e98d6 100644 --- a/examples/demos/photosurface/CMakeLists.txt +++ b/examples/demos/photosurface/CMakeLists.txt @@ -24,7 +24,7 @@ find_package(Qt6 COMPONENTS Quick) if (WIN32) #! [appicon_windows] set(app_icon_resource_windows "${CMAKE_CURRENT_SOURCE_DIR}/resources/photosurface.rc") - add_executable(photosurface main.cpp ${app_icon_resource_windows}) + qt_add_executable(photosurface main.cpp ${app_icon_resource_windows}) #! [appicon_windows] elseif (APPLE) #! [appicon_macOS] @@ -38,10 +38,10 @@ elseif (APPLE) set_source_files_properties(${app_icon_macos} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") - add_executable(photosurface MACOSX_BUNDLE main.cpp ${app_icon_macos}) + qt_add_executable(photosurface MACOSX_BUNDLE main.cpp ${app_icon_macos}) #! [appicon_macOS] else() - add_executable(photosurface main.cpp) + qt_add_executable(photosurface main.cpp) endif() target_link_libraries(photosurface PUBLIC |