Have you tried Qt but with QMake instead of CMake?
Use Qt Creator instead of Visual Studio.
It is much much easier to manage the project with QMake in my personal opinion, and Qt Creator blends beautifully with the Qt Framework with the kit manager, and the form designer, qmake/cmake integration…
Qt (Framework) manages so much behind the scenes that cross platform is trivial.

Small improvement: Allow for spaces near the Equal sign in the regex (i.e. Port\s*=\s*)