add_custom_target(foo)
add_dependencies(foo bar)