add_dependencies()
add_dependencies
Add a dependency between top-level targets.
add_dependencies(<target> [<target-dependency>]...)
Make a top-level <target>
depend on other top-level targets to ensure that they build before <target>
does. A top-level target is one created by one of the add_executable()
, add_library()
, or add_