INCLUDE_DIRECTORIES( ${LIBEBOOK_INCLUDE_DIR} ${LIBECAL_INCLUDE_DIR} ${LIBEDATABOOK_INCLUDE_DIR} ${LIBEDATACAL_INCLUDE_DIR} ${LIBEDATASERVER_INCLUDE_DIR} ${GCONF2_INCLUDE_DIR} ${OPENSYNC_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} )

SET( evo2_sync_LIB_SRCS
  evolution2_sync.c 
  evolution2_ebook.c
  evolution2_ecal.c
  evolution2_etodo.c
)

OPENSYNC_PLUGIN_ADD( evo2-sync ${evo2_sync_LIB_SRCS} ) 

TARGET_LINK_LIBRARIES( evo2-sync ${LIBEBOOK_LIBRARIES} ${LIBECAL_LIBRARIES} ${LIBEDATABOOK_LIBRARIES} ${LIBEDATACAL_LIBRARIES} ${LIBEDATASERVER_LIBRARIES} ${OPENSYNC_LIBRARY} ${LIBXML2_LIBRARIES} )

###### INSTALL ################### 
OPENSYNC_PLUGIN_INSTALL( evo2-sync )

OPENSYNC_PLUGIN_CONFIG( evo2-sync )

INCLUDE_DIRECTORIES( ${LIBEBOOK_INCLUDE_DIR} ${LIBECAL_INCLUDE_DIR} ${LIBEDATABOOK_INCLUDE_DIR} ${LIBEDATACAL_INCLUDE_DIR} ${LIBEDATASERVER_INCLUDE_DIR} ${GCONF2_INCLUDE_DIR} ${OPENSYNC_INCLUDE_DIR} ${GLIB2_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} )

SET( evo2_sync_LIB_SRCS
  evolution2_sync.c 
  evolution2_ebook.c
  evolution2_ecal.c
  evolution2_etodo.c
)

OPENSYNC_PLUGIN_ADD( evo2-sync ${evo2_sync_LIB_SRCS} ) 

TARGET_LINK_LIBRARIES( evo2-sync ${LIBEBOOK_LIBRARIES} ${LIBECAL_LIBRARIES} ${LIBEDATABOOK_LIBRARIES} ${LIBEDATACAL_LIBRARIES} ${LIBEDATASERVER_LIBRARIES} ${OPENSYNC_LIBRARIES} ${LIBXML2_LIBRARIES} )

###### INSTALL ################### 
OPENSYNC_PLUGIN_INSTALL( evo2-sync )

OPENSYNC_PLUGIN_CONFIG( evo2-sync )

Make sure plugins are consistently linked with $OPENSYNC_LIBRARIES
Make sure plugins are consistently linked with $OPENSYNC_LIBRARIES


git-svn-id: f1bb718d4e9c0c0d02e15ad9d34d3a6914bb64ae@2768 53f5c7ee-bee3-0310-bbc5-ea0e15fffd5e
