Barcelona have agreed a deal to sign sought-after Croatia teenager Alen Halilovic from Dinamo Zagreb, the Catalan giants have announced.