catch2/tests
Mike Crowe 4db8b50aab
Add support for building with Meson (#2530)
The Meson[1] build system makes it easier incorporate third-party
libaries into a project if they also build using Meson.

Let's add a minimal Meson build that's compatible with the CMake build,
along with a GitHub workflow to check that it builds and that at least
the simplest SelfTest runs.

The handling of catch_user_config.hpp is inspired by BUILD.bazel and
doesn't attempt to support any configuratons options. Such features
could be added later.

Meson strongly discourages using wildcards to specify sources, so the
source and header lists are copied from CMakeLists.txt.

Add a new test workflow to test the Meson builds. I was unable to get
these tests to pass with Ubuntu 20.04, so they use Ubuntu 22.04.

I'm neither a CMake nor a Meson expert, but the results seem to work for
me.

[1] https://mesonbuild.com/

Co-authored-by: Mike Crowe <mcrowe@brightsign.biz>
2022-10-01 23:28:30 +02:00
..
ExtraTests Raise the minimum CMake version to 3.10 (#2523) 2022-09-16 17:56:00 +02:00
SelfTest Normalize C++ namespace in JUnit's reporter classname field 2022-07-17 19:15:20 +02:00
TestScripts Use binary path in testBazelReporter reporter output path 2022-06-21 14:21:12 +02:00
CMakeLists.txt Fix running the tests with shared library on Windows. 2022-07-25 21:07:49 +02:00
meson.build Add support for building with Meson (#2530) 2022-10-01 23:28:30 +02:00