Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 4.11.0
-
Ubuntu 20.04
Qt 4.11.1
Description
I use QtCreator to develop a CMake based project.
My file structure is as following:
MyProject Subproject1 CMakeLists.txt include file1.h src file1.cpp Subproject2 CMakeLists.txt include file2.h src file2.cpp
The main CMakeLists.txt:
project(MyProject) add_subdirectory(Subproject1) add_subdirectory(Subproject2)
The subproject's project file is something like this:
project(Subproject1) file(GLOB SRC . src/*.cpp) file(GLOB INC . include/*.h) add_library(${PROJECT_NAME} SHARED ${SRC} ${INC})
In QtCreator the same structure looks a bit different:
MyProject Subproject1 CMakeLists.txt Header Files <------------- include file1.h Source Files <---------------- src file1.cpp ...
There are 2 unnecessary pseudo folders(Header Files, Source Files) that very confusing. I found no option to remove it. Setting Simplify tree options in the filters menu just mixes up all the structure, for example it pit all the CMakeLists.txt together, from all the project that makes the structure totally unreadable.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-23782 CMake projects have sources and headers splitted in separate nodes
- Closed
-
QTCREATORBUG-23896 [CMake] source files not displayed properly in source group when located in subdirectories
- Closed
-
QTCREATORBUG-23942 CMake: Proper use of TREE argument in source_group
- Closed