Commit 45e5d724 authored by Ben Boeckel's avatar Ben Boeckel

cmb: handle different icon names for applications

parent ae8a678c
Pipeline #10728 passed with stage
......@@ -26,10 +26,15 @@ foreach(program IN LISTS cmb_programs_to_install)
PLUGINS ${cmb_plugins}
SEARCH_DIRECTORIES
"${superbuild_install_location}/lib")
install(
FILES "${superbuild_install_location}/Applications/${program}.app/Contents/Resources/MacIcon.icns"
DESTINATION "${cmb_package}/${program}.app/Contents/Resources"
COMPONENT superbuild)
foreach (icon_filename MacIcon.icns pvIcon.icns)
set(icon_path "${superbuild_install_location}/Applications/${program}.app/Contents/Resources/${icon_filename}")
if (EXISTS "${icon_path}")
install(
FILES "${icon_path}"
DESTINATION "${cmb_package}/${program}.app/Contents/Resources"
COMPONENT superbuild)
endif ()
endif ()
install(
FILES "${superbuild_install_location}/Applications/${program}.app/Contents/Info.plist"
DESTINATION "${cmb_package}/${program}.app/Contents"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment