Generating config file with cmake