Replaced the duplicated commands with "add_subdirecory".