Using Inheritance/ Managing project classes Inside CLion


This Content is from Stack Overflow. Question asked by FrenchieBreeder

Say I have a two projects, “project1” and inside I have a main.cpp and headerOne.h file inside. For project two “projectTwo” I have inside another main.cpp and also a headerTwo.h file. If I am inside project two and I want to inherit a file/class (headerOne.h) from another project, what do I need to do? I have tried putting the name of the project and header file inside CMakeList.txt under add_executable, and I’ve tried using the PATH all to no avail. I’ve gone onto jetbrains and have not been able to find anything else to try. Is anyone familiar with CLion and connecting two project so that you can use inheritance? Thanks in advance.


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?