[CMake] libraries

Brad King brad.king at kitware.com
Tue Aug 8 13:46:50 EDT 2006


jecxz at telus.net wrote:
> FIND_LIBRARY( MY_LIB NAMES my MY PATHS c:\\pkg\\c\\cmake\\my\\o
> c:/pkg/c/cmake/my/o )

You don't need the backslash version.  CMake always uses forward slashes
in its own scripts.

> #link in the support libray
> TARGET_LINK_LIBRARIES( which my )

You have to use the result of the FIND_LIBRARY:

TARGET_LINK_LIBRARIES( which ${MY_LIB} )

-Brad


More information about the CMake mailing list