Hi,<br><br>I am writing a small set of libraries, and I like to use cmake to detect and configure them.<br>I am still a bit lost among the possibility, and I was wondering what is the right way to do it.<br><br>Let say I have libA and libB, with A depending on B, and B can be built with different options.
<br>From what I understod so far, my file hierarchy should be something like :<br>- A/<br>-&nbsp;&nbsp;&nbsp; CMakeLists.txt<br>-&nbsp;&nbsp;&nbsp; CMake/<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FindA.cmake<br>- B/<br>-&nbsp;&nbsp;&nbsp; CMakeLists.txt<br>-&nbsp;&nbsp;&nbsp; CMake/<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
FindB.cmake<br>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BConfig.cmake<br><br>Correct ?<br><br>I would like CMake to setup easily my development environement on different platforms, but there are different case.<br>Here is what I understand I should do from the documentation :
<br><br>- lib B has been built and installed : I provide a FindB.cmake to be used by A/CMakeLists.txt, found using CMAKE_MODULE_PATH, right ?<br>- lib B has been built but not installed : I provide a BConfig.Cmake to be used by A/CMakeLists.txt, found how ? B_DIR ?
<br>- lib B hasnt been built : how do I trigger the build from A/CMakeLists.txt ?<br><br>Where the configuration of the build of B should be ? in BConfig.cmake ? in a specific cmake-modified header ?<br><br>NB : A and B are two distinct projects, because B can be used in an independent way...
<br><br>Thank you for your help,<br><br>--<br>Asmodehn<br><br><br>