Hi,<br><br>I am new to CMake - and whilst I am immediately impressed with it&#39;s relative ease of use - I have a &#39;noob&#39; question, I&#39;m sure!<br><br>I have the following:<br>A library called MY_LIB that builds with a cmake command (I have created a nice CMakeLists.txt file)<br>
An application called MY_APP that builds a nice application - and even links in MY_LIB using:<br>link_directories(&quot;../MY_LIB&quot;)<br>target_link_libraries(MY_APP MY_LIB)<br><br>Now, first of all I know that I&#39;m not supposed to use relative paths.. but we&#39;ll call a side issue.. (though I&#39;d be happy to hear the correct way of doing things!) - the real problem that I have is this:<br>
<br>Give than MY_LIB is built using CMake and MY_APP is built using CMake.. how can I setup my build scripts so that I can call CMake once for MY_APP, it&#39;ll realise that it needs MY_LIB, which hasn&#39;t yet been built, invoke CMake for MY_LIB and then link itself with MY_APP?<br>
<br>I ask because I use libraries heavily to organise my code (and reuse) and would love to switch to CMake for all my building (XCode 4 has forced my hand!) but I can&#39;t seem to figure this out.<br><br>Please help a newcomer out - any help is greatly appreciated!<br>
<br>Thanks,<br><br>David<br>