LINK_DIRECTORIES( ${GLIB2_LIBRARY_DIRS} )
INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} )

OPENSYNC_PLUGIN_ADD( example_plugin plugin.c )
OPENSYNC_PLUGIN_ADD( format_plugin format.c )

TARGET_LINK_LIBRARIES( example_plugin ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( format_plugin ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )

###### INSTALL ################### 

OPENSYNC_PLUGIN_INSALL( example_plugin )
OPENSYNC_PLUGIN_INSALL( format_plugin )


LINK_DIRECTORIES( ${GLIB2_LIBRARY_DIRS} )
INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} )

OPENSYNC_PLUGIN_ADD( example_plugin plugin.c )
OPENSYNC_PLUGIN_ADD( format_plugin format.c )

TARGET_LINK_LIBRARIES( example_plugin ${OPENSYNC_LIBRARIES} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( format_plugin ${OPENSYNC_LIBRARIES} ${GLIB2_LIBRARIES} )

###### INSTALL ################### 

OPENSYNC_PLUGIN_INSALL( example_plugin )
OPENSYNC_PLUGIN_INSALL( format_plugin )


Upgrade example plugin to new FindOpenSync based on FindPkgConfig.
Upgrade example plugin to new FindOpenSync based on FindPkgConfig.



git-svn-id: e31799a7ad59d6ea355ca047c69e0aee8a59fcd3@2943 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
