Thanks!<br><br>
<div class="gmail_quote">On Fri, Oct 14, 2011 at 2:05 PM, John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Fri, Oct 14, 2011 at 7:33 AM, Paul Hansen <<a href="mailto:paul.hansen.name@gmail.com">paul.hansen.name@gmail.com</a>> wrote:<br>> Hi<br>><br>> Is it possible to make a common CMake setup that can be used in several<br>
> projects?<br>><br>> The projects are independant but do use common libraries. Would be nice to<br>> set this up in one place and not in the CMakeLists.txt for each project.<br>><br>> Can it be done "preprocessor-like":<br>
> #include "/path/to/common/CMakeLists.txt"<br>><br><br></div>Yes.<br><br>include(/path/to/common/CMakeLists.txt)<br><br>However I would change the name to something like the following:<br>include(/path/to/common/InitilaizeProjects.cmake)<br>
<div class="im"><br>> or is the way to make a top CMakeLists.txt that uses<br>> add_subdirectory(project1)<br>> add_subdirectory(project2)<br>><br>> or a third way?<br>><br>> Thank you very much<br>> Paul<br>
><br></div>> --<br>><br>> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>> Please keep messages on-topic and check the CMake FAQ at:<br>> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>><br><font color="#888888"><br><br><br>--<br>John M. Drescher<br></font></blockquote></div><br>