Add logo and version information to exe on windows (#4093)

This commit is contained in:
PioLing
2025-01-03 11:33:35 +08:00
committed by GitHub
parent 1c8ed1c55a
commit 9863f9c160
11 changed files with 68 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
# MIT License
#
# Copyright (c) 2016-2022 The ZLMediaKit project authors. All Rights Reserved.
# Copyright (c) 2016-present The ZLMediaKit project authors. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -56,4 +56,13 @@ else()
target_link_libraries(MediaServer ${MK_LINK_LIBRARIES})
endif()
if(MSVC)
set(RESOURCE_FILE "${CMAKE_SOURCE_DIR}/resource.rc")
set_source_files_properties(${RESOURCE_FILE} PROPERTIES LANGUAGE RC)
target_sources(MediaServer PRIVATE ${RESOURCE_FILE})
else()
# Android, IOS, macOS ...
# CLion, GCC ...
endif()
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_RUNTIME})