Skip to content

Add Meson Build System Support to ddX#157

Open
lukaswittmann wants to merge 15 commits intoddsolvation:mainfrom
lukaswittmann:meson
Open

Add Meson Build System Support to ddX#157
lukaswittmann wants to merge 15 commits intoddsolvation:mainfrom
lukaswittmann:meson

Conversation

@lukaswittmann
Copy link

Add Meson Build System Support to ddX

Summary
This pull request implements a Meson-based build and test setup for ddX (see issue #155), providing an alternative to the existing CMake workflow. The Meson configuration is purely additive and does not remove or disrupt the CMake build. Portions of these Meson files and snippets were adapted from tblite and dftd4.

Key Changes

  1. Meson Build Files

    • Added a top-level meson.build for compiling ddX with dependencies (BLAS, LAPACK, OpenMP).
    • Created subdirectory meson.build files for tests, including standalone_tests.
  2. Testing Integration

    • Replicated the CMake test suite using Meson’s test() calls, preserving coverage (e.g., ddx_driver, force, lpb_incore).
    • Introduced wrapper script (tests/standalone_tests/meson_test_wrapper.in) where needed to accommodate older Meson versions lacking advanced test() arguments.
  3. Preservation of CMake

    • The existing CMake setup remains fully intact.
    • Users can choose Meson or CMake based on their environment and preference.
  4. Documentation

    • Added build and test instructions for Meson in the docs/ folder.

Minimum Meson Version
Requires Meson 0.61 or later.

Quick Usage

meson setup build
meson compile -C build
meson test -C build --print-errorlog

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant