This is not exactly a compilation related problem, but much more a visual issue ...
I have a project, set up with CMake (this is not a Qt project). When I open this project with QtCreator it nicely finds all the related files, and the files in the project browser are in alphabetical order like:
Project
+ abc.cpp
+ abc.h
+ def.cpp
+ def.h
However, if I work with QtCreator and a QMake based project, the headers and sources are nicely separated like:
Project
+ Headers
| + abc.h
| + def.h
+ Sources
+ abc.cpp
+ def.cpp
Question: How to achieve this separation of headers and sources with Qt Creator? I have tried with SOURCE_GROUP("Headers" FILES abc.h def.h)
and although that this works (to some extent) with Visual Studio, it does not work with Qt Creator. Any other tips?