How to change root for subproject?
已回答
I have directory tree like this:
+ Some root folder
|---+ Main project folder
|---|---+ Includes folder
|---|---+ Sources folder
|---|---+ CLionIDE folder
|---|---|---- CMakeLists.txt
|---+ Extra project folder
|---|---+ Includes folder
|---|---+ Sources folder
|---|---+ CLionIDE folder
|---|---|---- CMakeLists.txt
So, I can change root for Main project with Tools-Cmake-Change project root. (I can't change location cause some specific projects structure in company)
And also I can add Extra project to Main project with
add_subdirectory(../../Extra/CLionIDE ...)
in CMakeLists.txt for Main project.
But I don't know how to change root for Extra project, so I will see very strange structure in Project panel. All Extra project files move to root directory (only in Project panel of course).
So, can I change root for Extra project or not?
请先登录再写评论。
Could you please specify if you can set 'Some root folder' as root?
Yeah, I can. Some unwanted folders will appear in Project panel, but that will be better that I have. Also, I can exclude some folders (but can't hide).
Wow, it was so easy and I miss it... Thank you, Anna!