cmake configure_file examples

Signatures

configure_file(<input> <output>
  [NO_SOURCE_PERMISSIONS | USE_SOURCE_PERMISSIONS |
  FILE_PERMISSIONS <permissions>...]
  [COPYONLY] [ESCAPE_QUOTES] [@ONLY]
[NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])

Examples

machinekit/machinekit-hal src/modules/managed/drivers/hal_pru_generic/CMakeLists.txt :145

configure_file(${source_file} ${firmware_source_file}
                     USE_SOURCE_PERMISSIONS COPYONLY)