[CMake] how to specify dependencies out of the source tree?

Eric Noulard eric.noulard at gmail.com
Wed Jan 26 06:44:58 EST 2011


2011/1/26 Michal Turlik <michal_tlk at yahoo.com>
>
> Hi all
> I am trying to build and link against a dependency out of the source tree.
> I tried to arrange a custom target/command combo but it did not work.
> Could someone help me with this?
> What I really need is how to let cmake and make be correclty launched for such an out of tree dependency before it would be linked with my application.
> thank you so much

Did you have a look at ExternalProject_Add from ExternalProject module?

see:
cmake --help-module ExternalProject


--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list