I haven’t quite tried it out yet, but you should be able to just put
[library]
link = ["openmp"] # or whatever the name of your library
in your fpm.toml
file and have it work. Feel free to submit issues and/or add to the discussion if you find something that doesn’t work.