<div class="gmail_quote">On Thu, Jan 22, 2009 at 5:08 AM, Ram Mulage <span dir="ltr"><<a href="mailto:themulage@gmail.com">themulage@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thank you all for the inputs. Shall try all the suggested methods and then get back to you.<br><br>Meanwhile I have another quick question. I am trying to build a library(.lib) and the directory strcture is as mentioned below.<br>
<br>|-Lib_a<br>| -lib1<br>| -lib2<br>| -lib3<br>|-Lib_b<br><br>Lib_a
has three sub-directories and each directory creates a .lib file. The
requirement is to create a library(.lib) in Lib_b, which uses all the 3
libraries created in Lib_a. How should my CMakeLists.txt in Lib_b
should look for this requirement?</blockquote><div><br>Top/CMakeLists.txt<br>====<br>add_subdirectory(Lib_a)<br>add_subdirectory(Lib_b)<br><br>Lib_a/CMakeLists.txt:<br>====<br>add_subdirectory(lib1)<br>add_subdirectory(lib2)<br>
add_subdirectory(lib3)<br>
<br>Lib_a/lib1/CMakeLists.txt<br>====<br>add_library(lib1 foo.cc)<br><br>Lib_b/CMakeLists.txt<br>====<br>add_library(bar bar.cc)<br>target_link_librarkes(bar lib1 )<br></div></div><br>-- <br>Philip Lowman<br>