in building mode place barricades on ground. hire engineers/sappers and they will build them automatically
Thanks!