[CMake] Preferred way to use 3rd-party dependencies

Yuri Timenkov yuri at timenkov.ru
Fri Feb 18 06:17:24 EST 2011


Dear all,

I haven't been using CMake (and hence following) for almost 3 years and I
suppose it has a big progress since 2.4.

Now I'm looking for most kosher way to specify external dependencies for a
particular project. The most straightforward way of specifying include dirs
and libraries when porting from Visual Studio - is using include_directories
& link_directories commands. However, I heard that link_directories is not
very good idea and the preferred way is using imported targets.

Some libraries are internal but built by separate teams for different
compilers version. Also we don't need to find library & include dir's
location, we know them in advance (and it is rather fixed).

So may be there are some guides, and discussions or examples about recent
Find* modules behavior?

Thanks in advance,
Yuri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110218/42cc6568/attachment.htm>


More information about the CMake mailing list