One is part of the other. Intelligence is only a part of mindedness which deals with how we understand and solve problems. Another part would be the one that deals with emotions and memories. So maybe building artificial intelligence won’t lead to building mindedness.