As a workaround, a pre-build step could be created which calls a script that reads the file and generates the macro definition in a header. Then this header file could be included in my projects.
However I do not find this solution nice, I hope there is a better one.