# No way to create Xcode sub-projects?

**URL:** <https://discourse.cmake.org/t/no-way-to-create-xcode-sub-projects/4525>\
**Category:** Code\
**Tags:** os:macos, gen:xcode\
**Created:** [November 22, 2021, 4:29pm UTC](https://discourse.cmake.org/t/no-way-to-create-xcode-sub-projects/4525 "2021-11-22T16:29:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amzh](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/a/e99b99/32.png) [@amzh](https://discourse.cmake.org/u/amzh)\
**Post date:** [November 22, 2021, 4:29pm UTC](https://discourse.cmake.org/t/no-way-to-create-xcode-sub-projects/4525/1 "2021-11-22T16:29:49Z")

</div>

Hello,

documentation says that

> The Visual Studio Generators create a `.sln` file for each directory whose `CMakeLists.txt` file calls the `project()` command.

hence we can easily have a sub-projects tree in IDE,

is there a way to create the same in Xcode, that is have those blue project icons instead of folders for all the subprojects?

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [November 24, 2021, 2:24am UTC](https://discourse.cmake.org/t/no-way-to-create-xcode-sub-projects/4525/2 "2021-11-24T02:24:36Z")

</div>

It might be possible, but CMake might not do it today either. I suggest a [feature request](https://gitlab.kitware.com/cmake/cmake/-/issues). If you can provide information on what the project files need to have and how they reference each other, that’d probably be useful.
