Move build system to CMake + vcpkg
I opted to use Meson because it was much, much simpler than CMake. It uses a very python-like syntax that I find quite enjoyable to work with. Early versions of µvMac actually did use CMake, but I was struggling to understand it. Thankfully it seems the tooling around CMake has become a bit nicer in the past year or two, and CMake provides several advantages over Meson.
In particular, Meson only supports a few very well-known third-party packages, and the process for importing new packages is painful, to say the least. Meanwhile with CMake, we can use vcpkg to manage packages, which seems much nicer. Additionally, CMake has better IDE support in Visual Studio, CLion, KDevelop, etc.
Steps:
- Restore old CMake build file from git history
- Update build file to match changes to repository since Meson adoption
- Figure out how to get CMake to produce a configuration file like Meson does
Previous version of CMakeLists.txt is here. It seems I was trying to somehow mesh the configuration of the mini vMac build system with CMake. No wonder I was having issues.
I'll just start this from scratch, to make things easier for myself.