scripts = ['https@.sh', 'sslcat.sh', 'sslconnect.sh'] renamed = [] foreach s : scripts renamed += s.substring(0, -3) endforeach install_data( sources : scripts, rename : renamed, install_dir : get_option('bindir'), install_tag : 'bin', install_mode : 'rwxr-xr-x', )