two separate projects based on cmake

Hello

We have two separate projects called A and B. Project A generated multiple libraries and Project B having multiple libraries and executables. Now Project B depends on Project A. so how can we make dependencies between projects in cmake.

Also both projects having separate cmake presets in CMakePreset.json file. so is it possible to map those as well ?