[CMake] Convert libtool convenience libraries to cmake

Yevgen Muntyan ymuntyan at gmail.com
Mon Apr 13 03:06:36 EDT 2009


Right now I don't have access to a linux system so I can't check. But my 
very reason to use cmake
is to have a bulid system which works on windows in addition to unix (on 
which I have autotools),
so it's kind of unimportant whether it works on linux or not :)

Best regards,
Yevgen

Adolfo Rodríguez wrote:
> Have you tried building your project using a different generator to 
> check if it's a VS-specific problem?. I've set compile flags on a 
> per-source basis using  various generators under Linux and had no 
> problem. Do you have access to a Linux box, or is your project 
> Windows-specific?
>
> Cheers,
>
> Adolfo
>
>
> On Mon, Apr 13, 2009 at 12:54 AM, Yevgen Muntyan <ymuntyan at gmail.com 
> <mailto:ymuntyan at gmail.com>> wrote:
>
>     Andreas Pakulat wrote:
>
>         On 07.04.09 20:29:49, Yevgen Muntyan wrote:
>          
>
>             Hi,
>
>             I want to convert an autotools project to cmake. But, I
>             don't know how  to solve the problem of the
>             convenience libraries. The issue is: the project builds a
>             shared library  of bunch of libtool convenience
>             libraries. Each convenience library uses different
>             compilation flags  (which is very important). So I can't
>             simply take all sources I got and stuff them into a shared
>             library with  add_library().
>                
>
>
>         Sure you can. You can set compile flags on a per source file
>         basis with
>         set_source_file_properties. If you have a bunch of files that
>         get the same
>         flags, put them into a variable, iterate over them and set the
>         flags on
>         each that way.
>          
>
>     In fact, it doesn't even work. Generated visual studio project
>     ignores COMPILE_FLAGS set on source files,
>     even though it seems to be okay with COMPILE_DEFINITIONS. This is
>     strange because visual studio itself
>     does support compile flags set per-file. So I am back to my
>     original question. Anybody knows how to build
>     a shared library of separate cmake targets?
>
>     Thanks!
>     Yevgen
>
>     _______________________________________________
>     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
>
>
>
>
> -- 
> Adolfo Rodríguez Tsouroukdissian
>
> Robotics engineer
> PAL ROBOTICS S.L
> http://www.pal-robotics.com
> Tel. +34.93.414.53.47
> Fax.+34.93.209.11.09



More information about the CMake mailing list