How to keep source folders hierarchy on solution explorer?
问题 I made a C++ project on Linux, and I grouped source files in many directories to organize myself. I was using CMake to compile, with one CMakeFiles.txt on each subdirectory. srcs |--folderA | |--Toto.cpp | |--Tata.cpp | |--folderB | |--Foo.cpp | |--Bar.cpp [...] Recently, I opened it with Visual Studio 2015, which found every source file, but just put the entire list on the "Source Files" folder of solution explorer. Source Files |--Toto.cpp |--Tata.cpp |--Foo.cpp |--Bar.cpp I plan to have a