1 ## Build OpenSync plugins as module
2 MACRO( OPENSYNC_PLUGIN_ADD _pluginName )
4 SET( CMAKE_SHARED_MODULE_PREFIX "" )
5 ADD_LIBRARY( ${_pluginName} MODULE ${ARGN} )
7 ENDMACRO( OPENSYNC_PLUGIN_ADD )
9 ## Build OpenSync format plugins as module
10 MACRO( OPENSYNC_FORMAT_ADD _formatName )
12 SET( CMAKE_SHARED_MODULE_PREFIX "" )
13 ADD_LIBRARY( ${_formatName} MODULE ${ARGN} )
15 ENDMACRO( OPENSYNC_FORMAT_ADD )
18 MACRO( OPENSYNC_PLUGIN_INSTALL _pluginName )
19 INSTALL( TARGETS ${_pluginName} DESTINATION ${OPENSYNC_PLUGINDIR} )
20 ENDMACRO( OPENSYNC_PLUGIN_INSTALL )
22 ## Install format plugin
23 MACRO( OPENSYNC_FORMAT_INSTALL _pluginName )
24 INSTALL( TARGETS ${_pluginName} DESTINATION ${OPENSYNC_FORMATSDIR} )
25 ENDMACRO( OPENSYNC_FORMAT_INSTALL )
27 ## Install plugin description files
28 MACRO( OPENSYNC_PLUGIN_DESCRIPTIONS _descFiles )
29 INSTALL( FILES ${_descFiles} DESTINATION ${OPENSYNC_DESCRIPTIONSDIR} )
30 ENDMACRO( OPENSYNC_PLUGIN_DESCRIPTIONS )
32 ## Install plugin capabilities files
33 MACRO( OPENSYNC_PLUGIN_CAPABILITIES _capFiles )
34 INSTALL( FILES ${_capFiles} DESTINATION ${OPENSYNC_CAPABILITIESDIR} )
35 ENDMACRO( OPENSYNC_PLUGIN_CAPABILITIES )
37 ## Install plugin default configuration
38 MACRO( OPENSYNC_PLUGIN_CONFIG _pluginConfig )
40 INSTALL( FILES ${_pluginConfig} DESTINATION ${OPENSYNC_CONFIGDIR} )
42 ENDMACRO( OPENSYNC_PLUGIN_CONFIG )