S
S
saracen2018-12-09 11:44:31
CMake
saracen, 2018-12-09 11:44:31

How to structure multiple C++ projects with a common code base?

I have several projects that are almost of the same type, for which the same wrapper with the same sources is used. Cross-platform projects, on cmake. I would like to do something like Solution in Visual Studio, but within cmake. Projects differ only in internal logic. They also use the same 3rd-party libraries without exception. Please recommend how to structure my sources and libraries so that the wrapper is not duplicated on each project and wrapper changes are made only in one place for all projects. Does it make sense to split into dynamic libraries if the sources are generally small?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question