Lego have got this down pat. Rather than being solely reliant on external IP like Star Wars and Harry Potter where they only get one slice of the cake (and share that) they made their own IP. The most successful IP is Ninjago, there's about a dozen TV series, one film, one computer game, a theme park ride, books serialising the TV series, "fact books", clothing and the full range of merchandise.