[CMake] Linking static targets from sibling directories
Scott MacVicar
macvicar at facebook.com
Thu Feb 18 03:48:52 EST 2010
Hi,
I've been converting a current autoconf project to use CMake, the layout is such that there is a root directory and 3 sub directories containing various parts of the project.
filters and nls build two static libs and mbfl builds a third static lib that links to the previous two.
root
--filters
--mbfl
--nls
mbfl contains
target_link_libraries(mbfl mbfl_filters)
target_link_libraries(mbfl mbfl_nls)
but refuses to link the static libraries which are targets from the subfolders.
Entire repository is available at http://github.com/scottmac/libmbfl
I could convert it to be built at one single lib in one go but would rather keep parity with the autoconf equivalents.
Any help or pointers would be appreciated.
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100218/5f9d1f9e/attachment.htm>
More information about the CMake
mailing list