INCLUDE_DIRECTORIES( ${GLIB2_INCLUDE_DIRS} )

INCLUDE( OpenSyncPlugin )

OPENSYNC_FORMAT_ADD( file file.c )
OPENSYNC_FORMAT_ADD( plain plain.c )
OPENSYNC_FORMAT_ADD( xmlformat xmlformat.c )
OPENSYNC_FORMAT_ADD( xmlformat-doc xmlformat-doc.c )

TARGET_LINK_LIBRARIES( file ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( plain ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( xmlformat ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( xmlformat-doc ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )

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

OPENSYNC_FORMAT_INSTALL( file )
OPENSYNC_FORMAT_INSTALL( plain )
OPENSYNC_FORMAT_INSTALL( xmlformat )
OPENSYNC_FORMAT_INSTALL( xmlformat-doc )


INCLUDE_DIRECTORIES( ${GLIB2_INCLUDE_DIRS} )

INCLUDE( OpenSyncPlugin )

OPENSYNC_FORMAT_ADD( file file.c )
OPENSYNC_FORMAT_ADD( plain plain.c )
OPENSYNC_FORMAT_ADD( xmlformat xmlformat.c )
OPENSYNC_FORMAT_ADD( xmlformat-doc xmlformat-doc.c )

TARGET_LINK_LIBRARIES( file ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( plain ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( xmlformat ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )
TARGET_LINK_LIBRARIES( xmlformat-doc ${OPENSYNC_LIBRARY} ${GLIB2_LIBRARIES} )

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

OPENSYNC_FORMAT_INSTALL( file )
OPENSYNC_FORMAT_INSTALL( plain )
OPENSYNC_FORMAT_INSTALL( xmlformat )
OPENSYNC_FORMAT_INSTALL( xmlformat-doc )


INSTALL( FILES file.h DESTINATION ${OPENSYNC_INCLUDE_DIR}/opensync )


Install file.h for file-sync which needs the struct of objformat "file".
Install file.h for file-sync which needs the struct of objformat
"file".


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