mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
4db8b50aab
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>
38 lines
560 B
Plaintext
38 lines
560 B
Plaintext
*.build
|
|
!meson.build
|
|
*.pbxuser
|
|
*.mode1v3
|
|
*.ncb
|
|
*.suo
|
|
Debug
|
|
Release
|
|
*.user
|
|
*.xcuserstate
|
|
.DS_Store
|
|
xcuserdata
|
|
CatchSelfTest.xcscheme
|
|
Breakpoints.xcbkptlist
|
|
UpgradeLog.XML
|
|
Resources/DWARF
|
|
projects/Generated
|
|
*.pyc
|
|
DerivedData
|
|
*.xccheckout
|
|
Build
|
|
.idea
|
|
.vs
|
|
.vscode
|
|
cmake-build-*
|
|
benchmark-dir
|
|
.conan/test_package/build
|
|
bazel-*
|
|
build-fuzzers
|
|
debug-build
|
|
.vscode
|
|
msvc-sln*
|
|
# Currently we use Doxygen for dep graphs and the full docs are only slowly
|
|
# being filled in, so we definitely do not want git to deal with the docs.
|
|
docs/doxygen
|
|
*.cache
|
|
compile_commands.json
|