I split this in 2 commits so if you don't like the CMake cleanup it's easy to drop it. I mainly did it to reduce the number of lines and "sameness" of the CMake code to make it easier to spot things like this. The provide_prefix code no longer built, so I had to change some event. to event->.
Including headers in add_library and add_executable calls in CMake isn't necessary and is only used to display the headers in that target in Visual Studio, so I left it in as to not change the behaviour in a no-op cleanup commit.
I split this in 2 commits so if you don't like the CMake cleanup it's easy to drop it. I mainly did it to reduce the number of lines and "sameness" of the CMake code to make it easier to spot things like this. The provide_prefix code no longer built, so I had to change some
event.
toevent->
.Including headers in add_library and add_executable calls in CMake isn't necessary and is only used to display the headers in that target in Visual Studio, so I left it in as to not change the behaviour in a no-op cleanup commit.