`add_custom_command` with target properties at build time

Indeed and maybe you’ve read in the other post, the issue is that the suffix needs to chnage from .fypp to .f90, which is not supported by <PREPROCESSED_SOURCES>