Modernize CMake script
Modernize CMake script

For the most part, this means making use of the target-based CMake API. Also make sure not to link against SDL2main lib, which is not needed.

amaiorano/nes-emu,amaiorano/nes-emu