How to change the xcode target source directory name?

Hi:
I have a c project organized by CMake, I generated an Xcode project success based on it, Here is my c project directory Level

├── libs
│   ├── pthread
│   ├── uview
│   ├── xcrt
│   ├── xlibc
│   └── xlibcpp

the libs is parent directory, the pthread uview xcrt xlibc xlibcpp are subdirectory, I add pthread uview xcrt xlibc xlibcpp as a static libray into cmake use add_library, everything worked well,when I open generated xcode project,the xcode target pthread uview xcrt xlibc xlibcpp have independent source directory in xcode,but I want to add pthread uview xcrt xlibc xlibcpp into libs directory that they have same parent directory,what should I do? thanks!

the generated Xcode project directory level which I want should be organized like this:

├── libs
│   ├── pthread
│   ├── uview
│   ├── xcrt
│   ├── xlibc
│   └── xlibcpp

I think you want the FOLDER target property.

set_property(TARGET pthread PROPERTY FOLDER libs/pthread)

base your answer, I added:

set_property(GLOBAL PROPERTY USE_FOLDERS TRUE)
define_property(
    TARGET
    PROPERTY FOLDER
    INHERITED
    BRIEF_DOCS "Set the folder name."
    FULL_DOCS  "Use to organize targets in an IDE."
)

after that, I generate the Xcode project using CMake again, it worked perfectly, thanks a lot!