title: How to define compiler flags at compile time using CMake?
body: <p>add_definitions adds definition that is fixed at time when cmake (not make) is executed.
  How to define them when make (not cmake) is executed?
  The value of the definition will be an output of a custom command.</p>