I admit that it's not obvious :)
I decided to define these variables and their default values both in CMakeLists.txt and Common.h.
- In CMakeLists.txt, I create the appropriate -D flags.
- In Common.h, I set default values in the case where the -D flags are not defined (possible for people who don't use cmake).