feat: Add VERSIONINFO resource for windows (#4912)

This commit is contained in:
kornes
2023-11-03 17:19:50 +00:00
committed by GitHub
parent 8f99af5b7e
commit b3ed3285ee
6 changed files with 51 additions and 11 deletions
+1 -7
View File
@@ -646,13 +646,7 @@ set(SOURCE_FILES
${CMAKE_SOURCE_DIR}/resources/resources.qrc
)
if (WIN32)
# clang-cl doesn't support resource files
if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
list(APPEND SOURCE_FILES "${CMAKE_SOURCE_DIR}/resources/windows.rc")
endif ()
elseif (APPLE)
if (APPLE)
set(MACOS_BUNDLE_ICON_FILE "${CMAKE_SOURCE_DIR}/resources/chatterino.icns")
list(APPEND SOURCE_FILES "${MACOS_BUNDLE_ICON_FILE}")
set_source_files_properties(${MACOS_BUNDLE_ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")