just straight up tell him who you like, no need to hide it.
if he goes and does it anyways, you don't need him as a friend. Also, use this as motivation to step up your game.
There's a huge diff in "getting" a girl and "treating" a girl well. Typically, the lady sees what she likes, and doesn't realize the other stuff until later.