Clion doesn't handle properly header files only library
Answered
When creating a header file only library (an INTERFACE LIBRARY in terms of CMake), the CLion indexer is not able to properly make the job.
At this point (with the 2018.3 release), I have the completion working (fine) thanks to the "Mark directory as project files" but there is still missing the go to definition (or CTRL+click).
My project structure is as following:

My CMakeLists.txt is as following:

The completion is there and I'm happy with it:
But the Annex Class is still in Black ans no way to go to definition ("Cannot find declaration to got to" is displayed in tooltip)
Please sign in to leave a comment.
Hello!
Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-11340 in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.