[Cmake] TARGET_LINK_LIBRARIES

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Thu Apr 17 11:46:30 EDT 2003


Hi all,
	I have a project with directory like this:

project/
	libA/
	libB/

And libB need libA to be link.

Therefore in project/libB/CMakeLists.txt I add an entry:

TARGET_LINK_LIBRARIES(libB ${libA}) but this doesn't seems to be
sufficient. What should I add ?

BTW I thought that adding :
LINK_DIRECTORIES(.)
in project/CMakeLists.txt would do the trick, but unfortunately not.

thanks
mathieu





More information about the CMake mailing list