Seems, there is no easy way. You can use the hack <a href="http://stackoverflow.com/questions/7658694/how-to-tell-cmake-that-install-directory-depends-on-phony-target">http://stackoverflow.com/questions/7658694/how-to-tell-cmake-that-install-directory-depends-on-phony-target</a>.<div>
<div><div><br><div class="gmail_quote">2012/9/7 Totte Karlsson <span dir="ltr">&lt;<a href="mailto:totte@dunescientific.com" target="_blank">totte@dunescientific.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
I have a c++ library with some wrappers.<br>
The wrappers are in two folders ./Wrappers/C šand ./Wrappers/Python<br>
<br>
The python &#39;target&#39; and its install is just some python files. However it depends on the C wrapper being built and installed first. How do I express that in the CMakeList in the python folder?<br>
<br>
Currently, the python wrapper CMakeList just looks like this<br>
<br>
PROJECT(pythonWrapper)<br>
<br>
#=============== INSTALL =====================<br>
add_subdirectory(Tests)<br>
install(<br>
š š š š š š FILES<br>
š š š š š š rrPython.py<br>
š š š š š š rr.py<br>
š š š š š š SBMLTester.py<br>
š š š š š š MasterTest.py<br>
š š š š š š simulationTimer.py<br>
š š š š š š DESTINATION Python š š š š š<br>
š š š š š š COMPONENT Python<br>
š š š š)<br>
<br>
<br>
<br>
Best Regards,<br>
Totte<br>
-- <br>
.........................<br>
Totte Karlsson, Ph.D.<br>
Dune Scientific, LLC<br>
425-296 1980 (office)<br>
425-780 9648 (cell)<br>
<a href="http://www.dunescientific.com" target="_blank">www.dunescientific.com</a><br>
.........................<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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/<u></u>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/<u></u>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/<u></u>listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>÷ÁÌÅÎÔÉΠóÁÒÙÞÅ×, +79629250516<br><a href="http://valentine-sarychev.moikrug.ru/" target="_blank">http://valentine-sarychev.moikrug.ru/</a><br><br>
</div></div></div>