TARGET_FILE

This generator expression belongs to the Target Artifacts family. See that section for related generator expressions.

Syntax

$<TARGET_FILE:tgt>

Full path to the tgt binary file.

Note that tgt is not added as a dependency of the target this expression is evaluated on, unless the expression is being used in add_custom_command() or add_custom_target().