Fix to set proper app icon on MacOS.

Signed-off-by: Robin Verduijn <robinverduijn.github@gmail.com>
This commit is contained in:
Robin Verduijn 2024-03-29 13:21:40 -07:00 committed by AT
parent 3313c7de0d
commit 4852d39699

View File

@ -68,6 +68,10 @@ if(${CMAKE_SYSTEM_NAME} MATCHES Darwin)
set(METAL_SHADER_FILE ../gpt4all-backend/llama.cpp-mainline/ggml-metal.metal)
endif()
set(APP_ICON_FILE "${CMAKE_CURRENT_SOURCE_DIR}/icons/favicon.icns")
set_source_files_properties(${APP_ICON_FILE} PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
qt_add_executable(chat
main.cpp
chat.h chat.cpp
@ -87,6 +91,7 @@ qt_add_executable(chat
logger.h logger.cpp
responsetext.h responsetext.cpp
${METAL_SHADER_FILE}
${APP_ICON_FILE}
)
qt_add_qml_module(chat