# two separate projects based on cmake

**URL:** https://discourse.cmake.org/t/two-separate-projects-based-on-cmake/11328
**Category:** Code
**Tags:** os:linux, os:windows, tool:cmake
**Created:** [July 26, 2024, 10:06am UTC](https://discourse.cmake.org/t/two-separate-projects-based-on-cmake/11328 "2024-07-26T10:06:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![v2panchal](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/v/e68b1a/32.png) [@v2panchal](https://discourse.cmake.org/u/v2panchal)
#### Post date: [July 26, 2024, 10:06am UTC](https://discourse.cmake.org/t/two-separate-projects-based-on-cmake/11328/1 "2024-07-26T10:06:38Z")

</div>

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 ?
