As long as the .rc file is added to the project it will be recompiled on rebuild.
You can also use
syntax. On rebuild that will also recompile the rc file.
This definitely works at least since 3.2.0. Same as in Delphi.
For both compilers goes: this is on build, not compile. E.g. in FPC option -B
The wild card may also be just full filenames.