Yes. For now, we drop such defines in main CMakeLists.txt If that will grow, we can move those to a separate file with defines.
Then, you reference it both in python script and in config.h.in In python script just grab it to a variable and in config.h.in do a cmakedefine