You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
configure_file(ConfigureFile.in foo.txt @ONLY)
|
|
add_custom_target(foo)
|
|
add_custom_command(
|
|
OUTPUT bar.txt
|
|
MAIN_DEPENDENCY ConfigureFile.in # Attach to input of configure_file
|
|
DEPENDS foo
|
|
COMMAND ${CMAKE_COMMAND} -E copy foo.txt bar.txt
|
|
)
|
|
add_custom_target(bar DEPENDS bar.txt)
|