yizhang-yiz / fazang

Fazang is a Fortran library for reverse-mode automatic differentiation, inspired by Stan/Math library.
BSD 3-Clause "New" or "Revised" License
40 stars 3 forks source link

Make installable with meson #3

Closed awvwgk closed 2 years ago

awvwgk commented 2 years ago

Thanks for this really nice project. I had a quick look over the meson build files and noticed that it was not installable, this patch makes your project install smoothly in way that it can be used from meson, CMake, autotools and co.

Changes:

This allows other meson projects to use your library with:

fazang_dep = dependency('fazang', fallback: ['fazang', 'fazang_dep'])

and either find an installed version via pkg-config or build it as subproject on demand via a wrap file (subprojects/fazang.wrap):

[wrap-git]
directory = fazang
url = https://github.com/yizhang-yiz/fazang
revision = head
yizhang-yiz commented 2 years ago

Thanks a lot!