Good morning!
Do someone have example of usage the "file(GENERATE OUTPUT" cmake closure:
file(GENERATE OUTPUT output_file [CONDITION expression])
Could I use one to generate source code files by template?
I was unable to font out an answer in the official documentation: https://cmake.org/cmake/help/v3.0/command/file.html
and in the Internet
I have source files like
config.template :
config: param1: ${PARAM_1_VALUE}
and I wish to replace ${PARAM_1_VALUE} with some cmake variable value and get the corresponding output file with name config.cfg
Thanks in advance!