message(STATUS"Unable to find a related icon that matches pattern ${pattern} for variable ${appsources} - application will not have an application icon!")
endif(_icons)
else(PNG2ICO_EXECUTABLEANDWINDRES_EXECUTABLE)
message(STATUS"Unable to find the png2ico or windres utilities - application will not have an application icon!")
endif(PNG2ICO_EXECUTABLEANDWINDRES_EXECUTABLE)
endif(WIN32)
if(Q_WS_MAC)
# first convert image to a tiff using the Mac OS X "sips" utility,
# then use tiff2icns to convert to an icon
find_program(SIPS_EXECUTABLENAMESsips)
find_program(TIFF2ICNS_EXECUTABLENAMEStiff2icns)
if(SIPS_EXECUTABLEANDTIFF2ICNS_EXECUTABLE)
file(GLOB_RECURSEfiles"${pattern}")
# we can only test for the 128-icon like that - we don't use patterns anymore
# TODO - try to scale a non-128 icon...? Try to convert an SVG on the fly?
message(STATUS"Unable to find an 128x128 icon that matches pattern ${pattern} for variable ${appsources} - application will not have an application icon!")
endif(_icon)
else(SIPS_EXECUTABLEANDTIFF2ICNS_EXECUTABLE)
message(STATUS"Unable to find the sips and tiff2icns utilities - application will not have an application icon!")