- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
P3: Somewhat important
 - 
    None
 - 
    Qt Creator 4.11.0-rc1
 - 
    None
 
similar to other bug, bug a bit different QTCREATORBUG-23128
from the source_group documentation https://cmake.org/cmake/help/latest/command/source_group.html
a project with `source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR})` should have the same effect as manually defining the tree structure. But currently with QtCreator 4.11-RC1 we get a group named TREE with all the files in it
 cmake
 cmake_minimum_required(VERSION 3.15)
 project(folderstructure)
 set(files
 src/a/file_a.cpp
 src/b/file_b.cpp
 include/a/file_a.h
 include/b/file_b.h)
 add_library(l1 SHARED ${files})
 target_include_directories(l1 PUBLIC include)
 source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR})
expected structure
- l1
	
- src
		
- a
			
- file_a.cpp
 
 - b
			
- file_b.cpp
 
 
 - a
			
 - include
		
- a
			
- file_a.h
 
 - b
			
- file_b.h
 
 
 - a
			
 
 - src
		
 
what we actually get
- l1
	
- TREE
		
- file_a.cpp
 - file_a.h
 - file_b.cpp
 - file_b.h
 
 
 - TREE
		
 
- duplicates
 - 
                    
QTCREATORBUG-23372 new cmake project does not show sub-directory info
-         
 - Closed
 
 -