I'm currently evaluating CLion and I got it to work with our project built with CMake after a bit of struggling with paths and CMake parameters. It builds fine (on console and inside CLion).
But all project headers are marked as non-projects files. Which causes CLion to ignore them when performing refactorings and does not allow to implement methods for them and so on.
I was not able to track this down to the cause. There is a CMakeFiles.txt in the project root and several of those in subdirectories. These projects build executables and shared libraries and obviously are referenced by other subdirectories. But even those which are not referenced by other subdirectories exhibit the described behavior.
Any idea what could cause this?