Add a couple of more variable bindings, make all the set visual gear values optional, to allow skipping trailing params or specifying ones in the middle as nil to not set. Should make using it more convenient in simple cases.
install(FILES
map.png
mask.png
map.cfg
preview.png
DESTINATION ${SHAREPATH}Data/Maps/Castle)