<div dir="ltr">I just wanted to point out the existence of CMAKE_BUILD_TOOL, as it&#39;s related. In your case, however, you&#39;re probably better off hardcoding &#39;make&#39;. It should actually be done the same way you run &#39;make&#39; in your custom command creating the library.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 2:08 PM, Lucas Soltic <span dir="ltr">&lt;<a href="mailto:lucas.soltic@orange.fr" target="_blank">lucas.soltic@orange.fr</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>Le 6 sept. 2013 à 12:58, Petr Kmoch &lt;<a href="mailto:petr.kmoch@gmail.com" target="_blank">petr.kmoch@gmail.com</a>&gt; a écrit :</div>
<div class="im"><br><blockquote type="cite"><div dir="ltr"><div>Hi Lucas,<br><br>you could look into install(CODE ...) or its escaping-hell-avoiding brother, install(SCRIPT ...). The code/script could then be something like execute_process(COMMAND make install ...) or perhaps even execute_process(COMMAND ${CMAKE_BUILD_TOOL} install ...).<br>
</div></div></blockquote><div><br></div></div><div>Hi Petr,</div><div><br></div><div>I guess execute_process() with CMAKE_BUILD_TOOL depends on whether the target build tool supports &quot;install&quot; ? Will that work when installing from Visual Studio for example?</div>
<div><br></div><div>I need a solution that works both on Windows and Unixes :/</div><div>I&#39;ll have a look a install(SCRIPT …).</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div>Lucas</div>
</font></span><div class="im"><br><blockquote type="cite"><div dir="ltr"><div>
<br></div>Petr<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 6, 2013 at 11:44 AM, Lucas Soltic <span dir="ltr">&lt;<a href="mailto:lucas.soltic@orange.fr" target="_blank">lucas.soltic@orange.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Considering that I have a custom target that outputs some libraries and these libraries were built using configure+make. The custom library is based on autotools. Configure + make are executed by a custom command in the custom target.<br>


<br>
Is it possible to add a CMake install rule that will execute &#39;make install&#39; on my custom library? So that the install process is automatically handled.<br>
<br>
I&#39;m asking that because at the moment I&#39;m finding very hard to install a custom library only with classical CMake install rules, because I cannot know in advance the names of all the outputs because they have suffixes depending on the library version. And I would prefer to avoid hardcoding these versions, so that I can easily update my library.<br>


<br>
Regards,<br>
Lucas<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</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>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><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>
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>
</blockquote></div><br></div>
</blockquote></div></div><br></div></blockquote></div><br></div>