4 # Copyright (c) 2010 Emanoil Kotsev <deloptes@yahoo.com>
7 #INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src )
10 SET( AKONADY_OPENSYNC_SRCS
18 include_directories( ${AKONADI_INCLUDE_DIR} ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${KDEPIMLIBS_INCLUDE_DIR} )
19 include_directories( ${QT_INCLUDE_DIR} )
21 include_directories( ${OPENSYNC_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/src" ${GLIB2_INCLUDE_DIR} ${GLIB2_MAIN_INCLUDE_DIR})
22 include_directories( "${CMAKE_BINARY_DIR}/src" )
24 link_directories( ${AKONADI_LIB_DIR} ${KDE4_LIB_DIR} ${KDEPIMLIBS_LIB_DIR} ${OPENSYNC_LIBRARIES_DIR} ${glib2LibDir} )
26 AUTOMOC4( akonadi-sync AKONADY_OPENSYNC_SRCS )
29 OPENSYNC_PLUGIN_ADD( akonadi-sync ${AKONADY_OPENSYNC_SRCS} )
31 # ADD_DEPENDENCIES( akonadi-opensync akonadi_opensync.o akonadisink.o datasink.o sinkbase.o )
33 TARGET_LINK_LIBRARIES( akonadi-sync
37 ${KDEPIMLIBS_AKONADI_LIBS}
38 ${KDEPIMLIBS_AKONADI_CONTACT_LIBS}
39 ${KDEPIMLIBS_KCAL_LIBS}
42 ###### INSTALL ###################
43 OPENSYNC_PLUGIN_INSTALL( akonadi-sync )
44 OPENSYNC_PLUGIN_CONFIG( akonadi-sync )
45 #INSTALL( FILES akonadi_opensync_plugin DESTINATION "/opt/testing/opensync" )