mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
CMake: Warn when a serenity app is missing small or medium icons
This commit is contained in:
parent
2927656d85
commit
8161c99da2
1 changed files with 7 additions and 4 deletions
|
@ -79,12 +79,15 @@ function(serenity_app target_name)
|
|||
|
||||
if (EXISTS "${small_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_s "${small_icon}")
|
||||
endif()
|
||||
if (EXISTS "${medium_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
|
||||
else()
|
||||
message(WARNING "Missing small app icon: ${small_icon}")
|
||||
endif()
|
||||
|
||||
# TODO: Issue warnings if the app icons don't exist
|
||||
if (EXISTS "${medium_icon}")
|
||||
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
|
||||
else()
|
||||
message(WARNING "Missing medium app icon: ${medium_icon}")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(compile_gml source output string_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue