On Sun, Apr 19, 2009 at 6:16 PM, Sagrailo <[email protected]> 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?

>From set_target_properties() documentation:
Properties that affect the name of a target's output file are as follows.
The PREFIX and SUFFIX properties override the default target name prefix
(such as "lib") and suffix (such as ".so"). IMPORT_PREFIX and IMPORT_SUFFIX
are the equivalent properties for the import library corresponding to a DLL
(for SHARED library targets).

http://www.cmake.org/cmake/help/cmake2.6docs.html#command:set_target_properties

-- 
Philip Lowman
_______________________________________________
Powered by 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

Reply via email to