[CMake] Generic way to combine static libs

Mike Jackson imikejackson at gmail.com
Fri May 9 08:35:03 EDT 2008


You can do all sorts of things with CMake. You can generate files  
from templates or on the fly. You can then include those files in  
another target within CMake. I think the HDF5 build does something  
like this. I Know the ParaView builds do something like this.

If you look at the CMake documentation for "configure_file" you can  
get some more information. You may also need to look at  
"Add_custom_command".

I think the tiff build does something like this also, which is  
included in ParaView.

Maybe someone with a concrete example can give you some example code  
to work from.

Hope that helps a bit
-- 
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On May 9, 2008, at 1:01 AM, Christoph Cullmann wrote:

> On Thursday 08 May 2008 22:32:44 Alexander Neundorf wrote:
>> I think there is currently no generic solution to combine static  
>> libs into
>> another library.
>> Do you need the two static libs or could you just create one  
>> static lib
>> right away ?
> At the moment we need two, as the second internal lib is created by  
> some
> helper tool which takes some definitions and creates for them some
> datastructures as C code with their own makefiles + cppflags. If we  
> would
> change this utility to create cmakefiles, would that help? How  
> would it be
> possible to compile the generated C/C++ files (their names are not  
> known in
> advance, they depend on the definition given) with the generated  
> cppflags?
> Is it possible to include in a CMakeLists.txt a generated file  
> which is
> generated at compile time?
>
> cu
> Christoph
>
> -- 
> -------------------------------------- Christoph Cullmann ---------
> AbsInt Angewandte Informatik GmbH      Email: cullmann at AbsInt.com
> Science Park 1                         Tel:   +49-681-38360-22
> 66123 Saarbrücken                      Fax:   +49-681-38360-20
> GERMANY                                WWW:   http://www.AbsInt.com
> --------------------------------------------------------------------
> Geschäftsführung: Dr.-Ing. Christian Ferdinand
> Eingetragen im Handelsregister des Amtsgerichts Saarbrücken, HRB 11234
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list