Are You Anointed or Smeared?

According to the book of 1 Kings, who anointed Solomon to be the king of Israel before the death of David?