-forgot toremove the test code for the id (sorry)
[opensync/akonadi-sync-cdf.git] / src / CMakeLists.txt
blob42e1f9fbd3e964beefa4253a0e1730245d81c8a0
4 #    Copyright (c) 2010 Emanoil Kotsev <deloptes@yahoo.com>
5 #    $Id: deloptes$
7 #INCLUDE_DIRECTORIES( ${OPENSYNC_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src )
8
10 SET( AKONADY_OPENSYNC_SRCS
11   akonadi_opensync.cpp
12   akonadisink.cpp
13   datasink.cpp
14   sinkbase.cpp
18 include_directories( ${AKONADI_INCLUDE_DIR} ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${KDEPIMLIBS_INCLUDE_DIR}  )
19 include_directories( ${QT_INCLUDE_DIR} )
20
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" )  
23
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
34   ${OPENSYNC_LIBRARIES}
35   ${GLIB2_LIBRARIES}
36   ${KDE4_KDECORE_LIBS}
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" )