CMakeLists reorganization, fix RTTR on Windows

Authored by vpinon on Feb 26 2019, 1:45 PM.