<div dir="ltr"><div>Hi Cmakers,</div><div><br></div><div>I&#39;m new to CMake and because every new technology is a bit tricky at first, I hope some of you can give me a hint with the following build scenario.</div><div><br>
</div><div>Operating System: Windows</div><div><br></div><div>There are three directories on the same filesystem hierarchy.</div><div><br></div><div>- Include-directory </div><div>- Lib-directory</div><div>- Subversion-workingcopy</div>
<div><br></div><div>The workingcopy contains around 80 applications and like 900 shared libraries </div><div>and all of those applications can make use of all shared libraries and form together one application suite.</div>
<div><br></div><div>What I&#39;d like to accomplish are the following two scenarios combined in one CMake configuration (if possible):</div><div><br></div><div>1) Build the complete application suite with automatic dependency resolving.</div>
<div><br></div><div>For this scenario I would think that I put a CmakeLists.txt to every folder hierarchy in the workingcopy and</div><div>add all the necessary folders with add_subdirectory(). Because of the many shared libraries and the somewhat complex</div>
<div>folder-hierarchy I&#39;m not that sure about how to manage the dependencies (probably find_package()) but this should not </div><div>be the question now.</div><div>The header files, libs and the binaries should be stored in the Include-Directory, Lib-Directory and a binary directory </div>
<div>on the same level like the other two directories.</div><div><br></div><div>2) Build a shared library or application on it&#39;s own without dependency checking.</div><div><br></div><div>Every shared library and every application is an &quot;independent&quot; project. When building one of these projects</div>
<div>the Include-Directory and the Lib-Directory should be used when compiling and linking but if a dependency is missing </div><div>or a lib file is out of date this should result in a build error in this scenario and the developer has to take care </div>
<div>of this situation by himself. The created binaries and libs should be stored in a subdirectory of the corresponding project.</div><div><br></div><div>So I&#39;ve got an idea about how to solve 1) but I have no idea how to solve 2) especially in combination with 1).</div>
<div><br></div><div>regards<br></div><div>Tim </div><div><br></div></div>