generate config.h and version.h with cmake