[CMake] Adding Target to sibling

Valentine S. dizel3d at gmail.com
Sat Sep 8 01:58:24 EDT 2012


Seems, there is no easy way. You can use the hack
http://stackoverflow.com/questions/7658694/how-to-tell-cmake-that-install-directory-depends-on-phony-target
.

2012/9/7 Totte Karlsson <totte at dunescientific.com>

> Hi,
> I have a c++ library with some wrappers.
> The wrappers are in two folders ./Wrappers/C  and ./Wrappers/Python
>
> The python 'target' 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?
>
> Currently, the python wrapper CMakeList just looks like this
>
> PROJECT(pythonWrapper)
>
> #=============== INSTALL =====================
> add_subdirectory(Tests)
> install(
>             FILES
>             rrPython.py
>             rr.py
>             SBMLTester.py
>             MasterTest.py
>             simulationTimer.py
>             DESTINATION Python
>             COMPONENT Python
>        )
>
>
>
> Best Regards,
> Totte
> --
> .........................
> Totte Karlsson, Ph.D.
> Dune Scientific, LLC
> 425-296 1980 (office)
> 425-780 9648 (cell)
> www.dunescientific.com
> .........................
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>



-- 
Валентин Сарычев, +79629250516
http://valentine-sarychev.moikrug.ru/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120908/9099aca6/attachment.htm>


More information about the CMake mailing list