3 # (c) Deloptes deloptes@yahoo.com
8 CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
9 PROJECT( top-level C CXX )
12 SET ( PROJECT_NAME akonadi_opensync_plugin )
14 SET( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS} )
15 # SET( CMAKE_CXX_FLAGS_DEBUG "-DDEBUG -ggdb -g -O2 -Wall -W " ${CMAKE_CXX_FLAGS_DEBUG} ${KDE4_ENABLE_EXCEPTIONS} )
17 #ADD_DEFINITIONS(-g -O2 -fsigned-char -freg-struct-return -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Winline -Werror)
18 # ADD_DEFINITIONS( -DDEBUG -g -O2 -Wall -W -fexceptions)
20 ADD_DEFINITIONS( -ggdb -O2 -Wall -W -fexceptions)
22 FIND_PACKAGE( KdepimLibs REQUIRED )
23 FIND_PACKAGE( Akonadi REQUIRED )
24 FIND_PACKAGE( GLIB2 REQUIRED )
25 FIND_PACKAGE( KDE4 REQUIRED )
26 FIND_PACKAGE( OpenSync REQUIRED )
27 FIND_PACKAGE( Automoc4 REQUIRED )
29 INCLUDE( CheckIncludeFile )
31 INCLUDE( Documentation )
32 INCLUDE( OpenSyncDefaults )
33 INCLUDE ( OpenSyncPlugin )
34 INCLUDE( OpenSyncInternal )
35 INCLUDE( OpenSyncPackaging )
40 # include_directories( ${KDE4_INCLUDES} "/opt/testing/opensync/include" )
42 # include_directories( ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${KDEPIMLIBS_INCLUDE_DIR} ${OPENSYNC_INCLUDE_DIR} "/opt/testing/opensync/include" )
43 include_directories( ${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${KDEPIMLIBS_INCLUDE_DIR} ${OPENSYNC_INCLUDE_DIR} ${OPENSYNC_INCLUDE_DIR}/helper ${OPENSYNC_INCLUDE_DIR}/plugin )
45 include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src )
47 # include_directories( )
49 # link_directories( ${KDE4_LIB_DIR} ${KDEPIMLIBS_LIB_DIR} ${OPENSYNC_LIBRARIES_DIR} "/opt/testing/opensync/lib" )
50 link_directories( ${KDE4_LIB_DIR} ${KDEPIMLIBS_LIB_DIR} ${OPENSYNC_LIBRARIES_DIR} )
53 ADD_SUBDIRECTORY( src )
56 OPENSYNC_PACKAGE( ${PROJECT_NAME} ${VERSION} )