one bundle target for multiple targets

Hi, I have a project that produces 8 executable binaries, each as it’s own target.

Is it possible to have a “bundle-like” pseudo target I could use to build these 8 binaries that are built with add_executable ? Currently each of them build fine, but I would like to be able to have a target that builds all 8!

Create a custom target and add dependencies over your targets.

so just

add_custom_target(tools)
add_dependencies(tools toolA toolB toolC toolD)

Just like this?

Yes.

1 Like

Thanks, it worked