Skip to content

ECMAddAppIcon: support target as argument

When writing cmake code in modern target-oriented style, having no option to pass a target to ecm_add_app_icon() keeps things a bit cumbersome and inconsistent.

See e.g. https://invent.kde.org/utilities/okteta/-/blob/master/program/CMakeLists.txt#L31

Not tested due to lack of access to macOS & Windows, please give it a check, both usage and extended unit tests.

Merge request reports