Minimal "portable" cmake project that builds and links a shared library. Builds on various operating systems with various compilers.
Tested on Linux with GCC and clang and on Windows with MinGW and Visual Studio (various versions).
To build, just call the appropriate build_XYZ.[bat|sh] script.