Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for building with Meson #2530

Merged
merged 4 commits into from Oct 1, 2022

Commits on Oct 1, 2022

  1. Add support for building with Meson

    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/
    mikecrowe committed Oct 1, 2022
    Copy the full SHA
    f7abc18 View commit details
    Browse the repository at this point in the history
  2. Improve support for building with Meson

    Incorporate improvements suggested by Meson maintainer in
    mesonbuild/wrapdb#643 .
    mikecrowe committed Oct 1, 2022
    Copy the full SHA
    a2074f8 View commit details
    Browse the repository at this point in the history
  3. tests/meson.build: Use consistent name for SelfTest executable

    CMakeLists.txt calls the SelfTest binary SelfTest, so we should do so
    too.
    mikecrowe committed Oct 1, 2022
    Copy the full SHA
    982d1c2 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    d0b0cb1 View commit details
    Browse the repository at this point in the history