diff options
author | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2020-06-11 23:43:55 +0200 |
---|---|---|
committer | Venugopal Shivashankar <Venugopal.Shivashankar@qt.io> | 2020-06-15 15:14:44 +0200 |
commit | d48537ed2a585de7f1aba7c17616be7c3d0c503d (patch) | |
tree | b835bb3568b90a9c650e6cf009ff7b2b75387a99 /doc/src/snippets | |
parent | 94a619a50401e04fdd4787faa9940455edf6dae3 (diff) |
Example: Add the app icon setup
The example's qmake setup includes the app icon config,
which is dropped in the CMake setup for some reason.
In addition, updated the app icon setup instructions
to use this example as a reference instead of the
snippet file.
Change-Id: I12bb8b007904164226dc78f2a2e162b08c9003e1
Fixes: QTBUG-83696
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/code/CMakeLists.txt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/doc/src/snippets/code/CMakeLists.txt b/doc/src/snippets/code/CMakeLists.txt deleted file mode 100644 index 52c26898e..000000000 --- a/doc/src/snippets/code/CMakeLists.txt +++ /dev/null @@ -1,24 +0,0 @@ -cmake_minimum_required(VERSION 3.14) -project(qt5app LANGUAGES CXX) - -if (WIN32) -#! [appicon_windows] - set(APP_ICON_RESOURCE_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/qt5app.rc") - add_executable(qt5app main.cpp ${APP_ICON_RESOURCE_WINDOWS}) -#! [appicon_windows] -elseif (APPLE) -#! [appicon_macOS] - # NOTE: Don't include the path in MACOSX_BUNDLE_ICON_FILE -- this is - # the property added to Info.plist - set(MACOSX_BUNDLE_ICON_FILE qt5app.icns) - - # And this part tells CMake where to find and install the file itself - set(APP_ICON_MACOSX ${CMAKE_CURRENT_SOURCE_DIR}/qt5app.icns) - set_source_files_properties(${APP_ICON_MACOSX} PROPERTIES - MACOSX_PACKAGE_LOCATION "Resources") - - add_executable(qt5app MACOSX_BUNDLE main.cpp ${APP_ICON_MACOSX}) -#! [appicon_macOS] -else() - add_executable(qt5app main.cpp) -endif() |