<div>Hi</div>
<div> </div>
<div>Is it possible to make a common CMake setup that can be used in several projects?</div>
<div> </div>
<div>The projects are independant but do use common libraries. Would be nice to set this up in one place and not in the CMakeLists.txt for each project.</div>
<div> </div>
<div>Can it be done "preprocessor-like":</div>
<div>#include "/path/to/common/CMakeLists.txt"</div>
<div> </div>
<div>or is the way to make a top CMakeLists.txt that uses </div>
<div>add_subdirectory(project1)</div>
<div>add_subdirectory(project2)</div>
<div> </div>
<div>or a third way?</div>
<div> </div>
<div>Thank you very much</div>
<div>Paul</div>
<div> </div>