Complimenting as smart implies you have uniqueness in thinking, are good in handling situations, have wit to win over things easily, and it may suggest that he likes you but is trying hard to confess it.