Another option for MUMPS is via CMake FetchContent.
This assumes you first build and install MUMPS
git clone https://github.com/scivision/mumps
cmake -S mumps -B mumps/build --install-prefix $HOME/mumps
cmake --build mumps/build
cmake --install mumps/build
Then use this example project
cmake -Bbuild -DMUMPS_ROOT=$HOME/mumps
cmake --build build
ctest --test-dir build