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 <[email protected]> > 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/
-- Powered by www.kitware.com Visit other Kitware open-source projects at 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 Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
