am2cmake: how to set proper target

Alexander Neundorf neundorf at kde.org
Thu Jun 25 19:37:12 CEST 2009


On Thursday 25 June 2009, Duhamel Pascal wrote:
>                               Hello guys,
>
>
>
> I would like to chat with laurent Montel about the AM2CMAKE script he
> wrote.


I think it wasn't him... ;-)

>  The question is that I just don't understand the following line:
>
> if line =~ /^\s*lib(\S+)_la_\S+\s*=\s*\S+.*$/

This is intended to match those lines in order to get the source files for a 
target:

libkdeui_la_SOURCES = \
                qxembed.cpp ksharedpixmap.cpp kpixmapio.cpp \
                kpopupmenu.cpp ktoolbar.cpp kaction.cpp kstdaction.cpp \


The result here would be "kdeui".

Alex


More information about the Kde-buildsystem mailing list