Hi All,
Is it possible to configure a file at build time?
I want the functionality that configure_file
provides but I need it to run after another set of files have been generated.
I already have a custom command that generates a set of files. I then need to create another set of files based off a .in
file.
is it possible to do something like this?
# run the first add_custom_command
# set some variables based on the content of the generated files
# run add_custom_command again to create another file based of the source controlled wrapper.h.in
add_custom_command(
OUTPUT wrapper.h
COMMAND <cmake configure_file feature> wrapper.h.in wrapper.h
DEPENDS wrapper.in.h