CLion Code completion and auto-import and include_directories

I have set up a simple project with SFML, and would like to add the libary Thor (http://www.bromeon.ch/libraries/thor/) to my project.

My CMakeLists.txt looks like this: https://pastebin.com/HnssaCG6

My problem now is that while i can compile fine with the normal includes of the Thor libary (for instance: #include <Thor/Input/Action.hpp>) and project runs fine, I can´t see any auto-complete information about thor (like suggesting the thor namespace when i type "th") or anything else from Thor. The suggestions for SFML work fine and it finds all classes from SFML.

I also tried adding other header files via include_directories, but none show up in the completion apart from SFML.

This problem persist accross several machines, and i can´t find anything on how to get CLion to recognize the header files 

 

0

请先登录再写评论。