add_library NO_PREFIX

Kevin Ottens ervin at kde.org
Thu Nov 29 07:29:33 UTC 2012


Hello,

We currently have kde4_add_plugin calls in our cmake files, they can be 
replaced with:
add_library(foo MODULE ${foo_SRCS})
set_target_properties(foo PROPERTIES PREFIX "")

It's not exactly nice API wise, so after discussing with David, he got the 
idea of an extra option to add_library which automates the properties call, so 
the attached patch implements support for the following:
add_library(foo MODULE NO_PREFIX ${foo_SRCS})

Any comment? Anyone to sponsor that patch in cmake upstream?

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud patron of KDE, http://www.kdab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-NO_PREFIX-option-to-ADD_LIBRARY.patch
Type: text/x-patch
Size: 4344 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20121129/85035f26/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20121129/85035f26/attachment.sig>


More information about the Kde-frameworks-devel mailing list