cxxopt/test
Dylan Baker 0f1c5a0a79
Add Meson buildsystem support (#424)
* meson: Add a Meson based build system

This is primarily intended to be useful for projects using Meson wishing
to consume cxxopts as a subproject. By hosting the files upstream users
get the benefit of automatic parity with the CMake based install
provided by an OS vendor or distribution.

The implementation attempts to mirror the CMake build as much as
possible, with the exception of generating the cmake-config files, which
Meson doesn't currently support. It uses a small python script to parse
the cxxopts.hpp header to extract the version, due to a concious design
decision of Meson to leave such complex logic to external scripting
languages like Python.

* CI: add basic Meson testing

I've tried to be a bit more minimal here than the CMake tests are, since
there's already a good cross section of testing there. For Meson, I just
want to touch test each of the major platforms to ensure that it works
2026-01-12 18:00:29 +11:00
..
add-subdirectory-test Added compatibility with CMake 4. (#451) 2025-03-17 17:46:27 +11:00
find-package-test Added compatibility with CMake 4. (#451) 2025-03-17 17:46:27 +11:00
.gitignore ignore built files 2016-08-26 08:26:42 +10:00
.tipiignore Added instructions to use cxxopts with tipi to INSTALL (#325) 2022-03-22 22:01:25 +11:00
CMakeLists.txt fix(test): make test C++ standard consistent with build config (#450) 2025-02-27 07:26:25 +11:00
catch.hpp Update catch header 2024-07-16 09:29:45 +10:00
fuzz.cpp feat(fuzzer): Adds fuzz tests (#386) 2023-02-06 07:30:51 +11:00
link_a.cpp Cleanup uses of inline 2017-10-18 08:07:10 +11:00
link_b.cpp Cleanup uses of inline 2017-10-18 08:07:10 +11:00
main.cpp missing file 2017-05-31 17:57:27 +10:00
meson.build Add Meson buildsystem support (#424) 2026-01-12 18:00:29 +11:00
options.cpp fix the issue with default empty vectors behaviour. update unit test (#460) 2025-07-18 07:09:03 +10:00