[CMake] Recursive object libraries

Jonathan Anderson jonathan.anderson at cl.cam.ac.uk
Thu May 9 11:12:13 EDT 2013


Hi Brad, 

I've attached a CMakeLists.txt file that demonstrates what I want to do (and what I can do with my patch). It models a directory hierarchy in a single file and uses the object library mechanism to accumulate objects recursively.

I'm not familiar with the CMake testing framework. When I run "ninja test", it says that e.g. the RunCMake.ObjectLibrary test fails, but I am able to manually build the Tests/ObjectLibrary project and run all of the binaries that it produces. 


Jon
-- 
Jonathan Anderson

Research Associate
Computer Laboratory
University of Cambridge

jonathan.anderson at cl.cam.ac.uk
+44 1223 763 747


On Thursday, 9 May 2013 at 15:32, Brad King wrote:

> Hi Jon,
> 
> Thanks for looking at this.
> 
> On 05/09/2013 09:42 AM, Jonathan Anderson wrote:
> > I have created a patch that seems to provide the functionality
> > that I want (attached).
> 
> 
> 
> The patch looks interesting. We'll need it to include documentation
> and tests for the feature before acceptance.
> 
> First, please post a CMake code snippet using this feature and
> explain what you expect it to do.
> 
> Thanks,
> -Brad
> --
> 
> Powered by www.kitware.com (http://www.kitware.com)
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeLists.txt
Type: application/octet-stream
Size: 1439 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130509/a6f57769/attachment.obj>


More information about the CMake mailing list