[CMake] How to get rid of lib prefix on plugins?

Michael Jackson mike.jackson at bluequartz.net
Tue Sep 21 11:19:44 EDT 2010


     SET_TARGET_PROPERTIES( ${targetName}
         PROPERTIES
         SUFFIX ".plugin" )
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jackson at bluequartz.net
BlueQuartz Software               Dayton, Ohio



On Sep 21, 2010, at 10:52 AM, Kelly Burkhart wrote:

> I'm trying to create our python plugins with cmake.  I've tried
> python_add_module( pluginname ${SOURCES} ) as well as add_library(
> pluginname MODULE ${SOURCES} ).  The plugin looks to be created
> properly, but the name is libpluginname.so rather than just
> pluginname.so.  How can I get rid of the improperly prepended 'lib'?
>
> Also, I havn't gotten around to trying this on windows, but windows
> python plugins have an extension .pyd rather than dll.  How can I
> specify the correct plugin extension?
>
> Thanks,
>
> -Kelly
> _______________________________________________
> 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



More information about the CMake mailing list