[CMake] dependency on library in a subdir
Sylvain Jaume
sylvainjaume at gmail.com
Thu Feb 7 15:10:35 EST 2008
Hi,
I have these directories:
Foo
Foo/Bar
I need to link Foo.dll to Bar.dll
In the CmakeLists.txt in Foo, I wrote:
SUBDIRS(Bar)
ADD_LIBRARY(FooLib ${SRC_FILES})
TARGET_LINK_LIBRARIES(FooLib BarLib)
ADD_DEPENDENCIES(FooLib
BarLib)
But VS builds FooLib.dll first and complains that BarLib.dll cannot be
found.
Any hint to fix that?
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080207/da78ed80/attachment.htm
More information about the CMake
mailing list