Port to target-based ecm_add_app_icon

This commit is contained in:
Nicolas Fella 2022-03-20 20:16:04 +01:00
parent fa72ae8577
commit 05132a2f1d

View file

@ -338,11 +338,7 @@ endif()
# Sets the icon on Windows and OSX
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*system-file-manager.png")
ecm_add_app_icon(dolphin_APPICON_SRCS ICONS ${ICONS_SRCS})
# ecm_add_app_icon 5.83 will take target as arg, use that once it is min req.
target_sources(dolphin PRIVATE
${dolphin_APPICON_SRCS}
)
ecm_add_app_icon(dolphin ICONS ${ICONS_SRCS})
target_link_libraries(dolphin
PRIVATE