<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 02/26/2012 09:18 AM, Andreas Guther wrote:
<blockquote
cite="mid:1FEE06D3-CBB4-48B3-9552-59BBBD101F29@guther.net"
type="cite">
<pre wrap="">Hello,
I'm justing starting to learn/use CMake and I have a question regarding the usage of it in regards of source tree structure and library usage.
I have the following folder structure:
Root
        Bin
                Win32X86Debug
                Win32X86Release
                ...
        Lib
                Win32X86Debug
                Win32X86Release
                ...
        Source
                ace
                Application_1
                Application_2
                boost
                Library_1
                Library_2
                Library_3
                ...
        Tools
                …
I'd like to point out the structure within "Source". In the source directory there are libraries that may be used by one or more applications. That means for example that "Application_1" may use "Library_1" and "Library_3" and "Application_2" may use "Library_1" and "Library_2".
I have currently no idea how I should solve this without creating a find module for every library in the tree. Is there any other solution than creating find modules I can use?
If there is really no other (good) solution than creating find modules, is it possible to place the find modules (Library_n.cmake files, right?) within the library folders? I ask this, because I think it would make it much more easy to maintain them.
Kind regards,
Andreas
--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a>
</pre>
</blockquote>
<font face="DejaVu Sans">Is there a reason you can't use the
'include_directories' and 'link_directories' commands to add the
correct linkpaths?<br>
<br>
Micha<br>
<br>
</font>
</body>
</html>