This PR leverages the approach from the https://github.com/chaincodelabs/libmultiprocess project and introduces a new functions target_json_data_sources() and target_raw_data_sources(), which minimize the amount of code required to assign to assign a *.json or *.raw data file to the test_bitcoin,  bench_bitcoin or unitester targets.
As requested in #30901 (comment), the codegen build target is now supported, if available:
0$ cmake --version
1cmake version 3.31.5
2
3CMake suite maintained and supported by Kitware (kitware.com/cmake).
4$ cmake -G "Ninja" -B build
5$ cmake --build build --target codegen