
add_subdirectory( soap ) 
add_subdirectory( kioslave ) 




########### next target ###############
### kcal groupwise shared library

set(kcal_groupwise_LIB_SRCS 
   kcal_resourcegroupwise.cpp 
   kcal_resourcegroupwiseconfig.cpp 
   kcal_groupwiseprefs.cpp 
   groupwisesettingswidget.cpp 
)

kde4_add_ui_files(kcal_groupwise_LIB_SRCS groupwisesettingswidgetbase.ui )

kde4_add_kcfg_files(kcal_groupwise_LIB_SRCS kcal_groupwiseprefsbase.kcfgc )
kde4_add_library (kcalgroupwise SHARED ${kcal_groupwise_LIB_SRCS})
target_link_libraries(kcalgroupwise  ${KDE4_KDECORE_LIBS} gwsoap ${KDE4_KCAL_LIBS} kdepim ${KDE4_KDE3SUPPORT_LIBS})
set_target_properties(kcalgroupwise PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS kcalgroupwise  DESTINATION ${LIB_INSTALL_DIR})

########### next target ###############
### groupwise kcal plugin

set( kcal_groupwise_plugin_SRCS kcal_resourcegroupwise_plugin.cpp )

kde4_add_plugin(kcal_groupwise ${kcal_groupwise_plugin_SRCS})

target_link_libraries(kcal_groupwise ${KDE4_KDECORE_LIBS} kcalgroupwise ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KRESOURCES_LIBS})

install(TARGETS kcal_groupwise DESTINATION ${PLUGIN_INSTALL_DIR})

########### next target ###############
### kabc_groupwise shared lib

set(kabc_groupwise_LIB_SRCS kabc_resourcegroupwise.cpp kabc_resourcegroupwiseconfig.cpp )

kde4_add_kcfg_files(kabc_groupwise_LIB_SRCS kabc_groupwiseprefs.kcfgc )

kde4_add_library(kabcgroupwise SHARED ${kabc_groupwise_LIB_SRCS})

target_link_libraries(kabcgroupwise ${KDE4_KDECORE_LIBS} gwsoap ${KDE4_KCAL_LIBS} kdepim ${KDE4_KABC_LIBS} ${QT_QT3SUPPORT_LIBRARY})

set_target_properties(kabcgroupwise PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS kabcgroupwise  DESTINATION ${LIB_INSTALL_DIR})

########### next target ###############
### kabc groupwise plugin

set( kabc_groupwise_plugin_SRCS kabc_resourcegroupwise_plugin.cpp )

kde4_add_plugin(kabc_groupwise ${kabc_groupwise_plugin_SRCS})

target_link_libraries(kabc_groupwise ${KDE4_KDECORE_LIBS} kabcgroupwise ${QT_QT3SUPPORT_LIBRARY} ${KDE4_KRESOURCES_LIBS})

install(TARGETS kabc_groupwise DESTINATION ${PLUGIN_INSTALL_DIR})

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

install( FILES kabc_groupwise.desktop  DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc)
install( FILES kcal_groupwise.desktop  DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal)

