Sharing classes (files) beetwen projects in one workspace
Posted: Fri Dec 07, 2012 8:30 pm
Hi,
firstly I must say codelite is the best c++ ide i've ever used! I like it so much, however now when I work on a bigger projects it seems like it's missing one very important feature...
I am working on an online game, so I have one workspace and 3 projects in it (client, server, editor). The problem is, that for example server and client share the same movement and map classes, the editor and client share same render and gui classes etc. I need a way that I can have shared classes (.cpp and .hpp files) between projects in workspace, which I can include without any magic using #include "class.hpp", like in visual c++.
The only solution I came with is creating 4th project as a static library, add it to linker options in every project and add another location for include and lib files (that 4th project location) to workspace settings. However, that's rather unconvenient and ugly way. Not to mention that static linking sux on linux, and I would need to link very big sfml lib to that shared classes lib... I want to do it non-lib way.
Is there any solution for sharing classes between projects in codelite that I don't see?
Thanks!
firstly I must say codelite is the best c++ ide i've ever used! I like it so much, however now when I work on a bigger projects it seems like it's missing one very important feature...
I am working on an online game, so I have one workspace and 3 projects in it (client, server, editor). The problem is, that for example server and client share the same movement and map classes, the editor and client share same render and gui classes etc. I need a way that I can have shared classes (.cpp and .hpp files) between projects in workspace, which I can include without any magic using #include "class.hpp", like in visual c++.
The only solution I came with is creating 4th project as a static library, add it to linker options in every project and add another location for include and lib files (that 4th project location) to workspace settings. However, that's rather unconvenient and ugly way. Not to mention that static linking sux on linux, and I would need to link very big sfml lib to that shared classes lib... I want to do it non-lib way.
Is there any solution for sharing classes between projects in codelite that I don't see?
Thanks!