[CMake] custom library target name

Andreas Pakulat apaku at gmx.de
Sun Apr 19 19:32:41 EDT 2009


On 19.04.09 18:26:48, Philip Lowman wrote:
> On Sun, Apr 19, 2009 at 6:16 PM, Sagrailo <sagrailo at gmail.com> wrote:
> 
> > I'm building plugins, in my CMake based projects, as shared libraries; I
> > care about Unix only, and I really, really want the installed files to be
> > named like "foo.so", and not like "libfoo.so".  How exactly to achieve this
> > with CMake (I know this issue is somewhat discussed even in FAQ, and I tried
> > to follow suggestion there, but was not able to come up with working
> > solution...)?
> 
> 
> Have you tried the PREFIX target property?

Thats what KDE uses for its kde4_add_plugin() macro and it works just
fine.

Andreas

-- 
Your love life will be happy and harmonious.


More information about the CMake mailing list