I'm using CLion so I can (hopefully) have the ability to:
- Have code completion for a file type that is registered as a c++ file (In my case the file type is called .hps)
- Make full use of the error hightailing features and all of the intellisense on my .hps files
- Be able to use classes from other hps files, located in different folders in my project.
The general c++ style coloring is working, however, CLion won't notify me about syntax errors inside hps files:
- CLion won't find the source files I include, and therefore won't detect any classes that are declared inside other hps files and their methods (all of the folders that include that hps files are located inside a folder named "script"
Implementation of what I'm trying to include:
And as you can see, it does not detect it:
Now, this is the setup of my project:
- My project is located and opened at folder that has a folder inside it called "script" in which all of the .hps files I include are there.
I've set a CMakeLists.txt file that runs on MinGW environment. This is the full content of that file:
- There is a file, in my PARENT folder, called hps_api.hps, that consists classes declarations as well. Note that CLion won't detect it as well. Did I do something wrong? The only thing I pretty much did was to add include directories to the cmake file, but I guess it's not enough?
In another program called CodeLite for example, it's possible to just add to a list a path to search files to include, and then CodeLite parses those files and I can go to declarations of classes without any problems. Surely it's possible with CLion as well, right?