r/Jetbrains • u/Additional_Court_421 • 10d ago
Question Can't get includes to work (Linux/Steam Deck)
I downloaded Clion to test it and see if it could be a good alternative to VSCode, but I can't even get it to work right. I have my compiler and build, but the includes just don't work. In this image, I have Menu.h opened, and one of the search paths (menu/base) is the search path for Menu.h, and not the actual file. I Also don't know what "project target" is and if i have to set that. My CmakeList.txt should have all the paths. It worked fine in VSCode
Even when I press the button to "fix" the problem, it just adds the .h file to "add_executable" in the CmakeLists.txt and it doesn't fix it.

CMakeLists.txt: https://pastebin.com/kQguyefY
1
u/ujohnny JetBrains 10d ago
What do you have in CMake output?