diff options
author | Kai Köhne <[email protected]> | 2025-07-10 12:40:43 +0200 |
---|---|---|
committer | Kai Köhne <[email protected]> | 2025-07-11 20:03:25 +0200 |
commit | a5deebcd4816b6864fef98b7719f02a454c9cedc (patch) | |
tree | 631125ab32d283f9ad4ebdeb2b0df0568a7db26f | |
parent | a825ec01034967d30ad8b5dfbc74baa45ea9aed5 (diff) |
Name the bundle 'Document Viewer.app', and provide more
metadata for the Info.plist file.
Pick-to: 6.10
Change-Id: I4de88c1b272477b67c645a682b756d6b134a5a19
Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r-- | examples/demos/documentviewer/CMakeLists.txt | 2 | ||||
-rw-r--r-- | examples/demos/documentviewer/app/CMakeLists.txt | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/examples/demos/documentviewer/CMakeLists.txt b/examples/demos/documentviewer/CMakeLists.txt index 31114b7c7..7d41ce86a 100644 --- a/examples/demos/documentviewer/CMakeLists.txt +++ b/examples/demos/documentviewer/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause cmake_minimum_required(VERSION 3.16) -project(DocumentViewer LANGUAGES CXX) +project(DocumentViewer VERSION 1.0 LANGUAGES CXX) find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets LinguistTools OPTIONAL_COMPONENTS PrintSupport Pdf PdfWidgets Quick3D) diff --git a/examples/demos/documentviewer/app/CMakeLists.txt b/examples/demos/documentviewer/app/CMakeLists.txt index d93ad6cb8..9dd57a30d 100644 --- a/examples/demos/documentviewer/app/CMakeLists.txt +++ b/examples/demos/documentviewer/app/CMakeLists.txt @@ -52,7 +52,6 @@ qt_add_translations(documentviewer set_target_properties(documentviewer PROPERTIES WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE ) target_link_libraries(documentviewer PRIVATE @@ -62,6 +61,18 @@ target_link_libraries(documentviewer PRIVATE abstractviewer ) +if (APPLE) + set_target_properties(documentviewer PROPERTIES + OUTPUT_NAME "Document Viewer" + MACOSX_BUNDLE TRUE + MACOSX_BUNDLE_BUNDLE_NAME "Document Viewer" + MACOSX_BUNDLE_COPYRIGHT "Copyright (C) The Qt Company Ltd. and other contributors." + MACOSX_BUNDLE_GUI_IDENTIFIER "io.qt.examples.documentviewer" + MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} + MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} + ) +endif() + set(plugin_targets jsonviewer txtviewer |