/usr/src/googletest folder get's included in every project I open, how do I remove it?
Answered

See the image to understand what I mean. I never actively included this folder, it just shows up and is quite annoying. How do I remove not the folder, but Clion showing me the folder?
Please sign in to leave a comment.
Hello!
Have you checked the CMakeLists.txt file from your project? Maybe this folder is included there.
It does not get included in my CMakeList.txt, also it happens for every project and it seems like it is some strange postprocessing hook from clion.
When opening a project for the first time, I only see the folder I opened, but then 1-2s later the folder in the example above spinnaker_camera_driver get's duplicated and put once inside itself, right next to that /usr/src/googletest folder. It is really strange.
>it happens for every project
Please close all your projects (
File | Close Project), on the Welcome screen chooseNew Project, chooseC++ Executable, clickCreate. Do you observe this strange behavior for a newly created "Hello, World!" project?Close the project and open it. Is the /usr/src/googletest folder added?
Good idea, it help me get further with troubleshooting this, but I'm stuck again. The folder get's included when calling
find_package(catkin REQUIRED COMPONENTS ), but does not happen with the default project
Now I tried to look trough the cmake file of catkin, but it is massive and pulls in many dependencies. Is there a variable or a place that clion checks to determine what folders should be shown in the project tab? Because the folder is in no fashion present in the project folder, not as symlink or as copy.
It seems catkin somehow adds gtest to the project sources. Unfortunately, I don't know how. You can try removing gtest from your system if you don't use it. Or try to find out a way to disable gtest in catkin projects.
But what are those sources we are talking about? I assume it does not interact directly with clion, but with some cmake construct, which clion reads. If you could tell me what clion is reading, I could better figure out where catkin is writing to it and disable it. What does clion use to determine what it shows in the project tab?
CLion takes the information from the CMake files generated during the project loading (mostly Makefiles generated by CMake). The project structure is described in the CMakeLists.txt.