[CMake] Adding Target to sibling

Totte Karlsson totte at dunescientific.com
Thu Sep 6 19:01:50 EDT 2012


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
.........................



More information about the CMake mailing list