Move include directives into conditionals in CMakeLists.txt so only the relevant framework is included.
Add mouse event handlers to sdl2_skeleton.cpp.