<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">ehi nice!<br>thanks<br><br>--- On <b>Wed, 1/26/11, Rolf Eike Beer <i>&lt;eike@sf-mail.de&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Rolf Eike Beer &lt;eike@sf-mail.de&gt;<br>Subject: Re: [CMake] how to specify dependencies out of the source tree?<br>To: cmake@cmake.org<br>Date: Wednesday, January 26, 2011, 7:05 PM<br><br><div class="plainMail">&gt; I thank you so much Eric,<br>&gt; However I managed this thing and obteined the expected result by writing<br>&gt; something similar and then including it in my root CMakeLists.txt:<br>&gt;<br>&gt; ----- util lib dependency -----<br>&gt; # -*- Makefile -*-<br>&gt;<br>&gt; IF(BUILD_STANDALONE)<br><br>For those project I need that I usually do this without the user need to<br>do something special by:<br><br>IF
 (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)<br><br>Eike<br>_______________________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at <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: <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></div></blockquote></td></tr></table><br>