TIL Setup SDL2 with cmake and cLion

So you’re trying to build a really simple SDL2 app. You have CLion installed and CMake all set up. But every time you make the project you get Undefined symbols. Make sure you are

A. Finding the package using find_package(SDL2) B. Linknig the libraries using target_link_libraries(SDLGame SDL2)