mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:27:45 +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}")
|
if (EXISTS "${small_icon}")
|
||||||
embed_resource("${target_name}" serenity_icon_s "${small_icon}")
|
embed_resource("${target_name}" serenity_icon_s "${small_icon}")
|
||||||
endif()
|
else()
|
||||||
if (EXISTS "${medium_icon}")
|
message(WARNING "Missing small app icon: ${small_icon}")
|
||||||
embed_resource("${target_name}" serenity_icon_m "${medium_icon}")
|
|
||||||
endif()
|
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()
|
endfunction()
|
||||||
|
|
||||||
function(compile_gml source output string_name)
|
function(compile_gml source output string_name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue