Description
Currently you are required to explicitly specify each test and executable in the fpm manifest file.
This is a lot of manual work and can lead to overly-verbose manifests (see M_system for example).
I don't think this is necessary for implementation and I would rather have executables and tests in the default locations to be discovered automatically. Is this not how cargo does it?
The existing [[test]]
and [[executable]]
entries can be retained for specifying custom settings for individual executables & tests.
I believe this behaviour was mentioned in #105 (comment) and is also related to https://github.com/fortran-lang/fpm/issues/91.
This is very easy to implement in the fortran implementation from #155; the implementation already discovers all programs, but currently filters out those not specified in fpm.toml
in order to match existing behaviour.