Skip to content

Commit

Permalink
QtAppResources: minor changes, use appstream id for desktop.in file name
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Oct 9, 2023
1 parent 31e61e4 commit ea30c04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/modules/QtAppResources.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===============================================================================
#=======================================================================================================
# BSD 3-Clause License
#
# Copyright (c) 2023, Andrea Zanellato <redtid3@gmail.com>
Expand Down Expand Up @@ -63,7 +63,7 @@ if (UNIX AND NOT APPLE)
set(ICON_FILE_ "resources/icons/application.icon")

set(PROJECT_APPDATA_FILE_NAME "${PROJECT_APPSTREAM_ID}.appdata.xml")
set(DESKTOP_FILE_IN "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_ID}.desktop.in")
set(DESKTOP_FILE_IN "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_APPSTREAM_ID}.desktop.in")

list(APPEND PROJECT_RESOURCES ${APPDATA_FILE_IN_})
list(APPEND PROJECT_RESOURCES ${DESKTOP_FILE_IN_})
Expand Down Expand Up @@ -100,8 +100,8 @@ if (UNIX AND NOT APPLE)
TRANSLATION_DIR "${PROJECT_TRANSLATIONS_DIR}"
)
unset(DESKTOP_FILE_IN)
file(GLOB PROJECT_TRANSLATION_SOURCES "resources/translations/*")
source_group("Translation Sources" FILES ${PROJECT_TRANSLATION_SOURCES})
file(GLOB PROJECT_TRANSLATION_SOURCES "${PROJECT_TRANSLATIONS_DIR}/*")
source_group("Translations" FILES ${PROJECT_TRANSLATION_SOURCES})
#=======================================================================================================
# Install
#=======================================================================================================
Expand All @@ -118,4 +118,4 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/resources/icons/application.icon")
)
endif()

source_group("Resource Files" FILES ${PROJECT_RESOURCES})
source_group("Resources" FILES ${PROJECT_RESOURCES})

0 comments on commit ea30c04

Please sign in to comment.