
include_directories( ${CMAKE_SOURCE_DIR}/kresources/kolab/shared ${CMAKE_SOURCE_DIR}/knotes  )


########### next target ###############

set(knoteskolab_LIB_SRCS resourcekolab.cpp note.cpp ${libresourcekolabshared_SRCS} ${libknotesresources_SRCS})

#kde4_add_dcop_skels(knoteskolab_LIB_SRCS
#    ${CMAKE_SOURCE_DIR}/kresources/kolab/shared/kmailconnection.h
#    )

#kde4_add_dcop_stubs(knoteskolab_LIB_SRCS ${CMAKE_SOURCE_DIR}/kmail/kmailicalIface.h )


kde4_automoc(${knoteskolab_LIB_SRCS})

kde4_add_library(knoteskolab SHARED ${knoteskolab_LIB_SRCS})

target_link_libraries(knoteskolab  ${KDE4_KDEPRINT_LIBS} ${KDE4_KRESOURCES_LIBS} ${KDE4_KCAL_LIBS} kdepim)

set_target_properties(knoteskolab PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS knoteskolab  DESTINATION ${LIB_INSTALL_DIR})


########### next target ###############

set(knotes_kolab_PART_SRCS resourcekolab_plugin.cpp )

kde4_automoc(${knotes_kolab_PART_SRCS})

kde4_add_plugin(knotes_kolab ${knotes_kolab_PART_SRCS})



target_link_libraries(knotes_kolab  ${KDE4_KDECORE_LIBS} knoteskolab )

install(TARGETS knotes_kolab  DESTINATION ${PLUGIN_INSTALL_DIR})


########### install files ###############

install( FILES kolabresource.desktop  DESTINATION ${SERVICES_INSTALL_DIR}/kresources/knotes)


