I have a config.h
generated by CMake, defining the current build's setup, like this:
#ifndef CONFIG_H__
#define CONFIG_H__
#define CMAKE_BUILD_TYPE "Debug"
#define MY_GITHASH "@123456@"
#define MY_COMPILATION_DATE "2018-10-16"
#define MY_VERSION_MAJOR 1
#define MY_VERSION_MINOR 0
#endif /* CONFIG_H__ */
How can I put this into the binary so it can be printed on demand? I know that I can combine all defines into a new define and print this. I am looking for a more straight-forward solution that just prints the entire header file - ideally without having the location of the config.h
header file.