
include_directories(${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/ ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/  )


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

set(fileshare_propsdlgplugin_PART_SRCS propsdlgshareplugin.cpp ${libpropsdlgplugin_common_SRCS} ${libfilesharesamba_SRCS} ${libfilesharenfs_SRCS})

kde4_add_ui3_files(fileshare_propsdlgplugin_PART_SRCS
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/hostprops.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/nfs/nfsdialoggui.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/share.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/socketoptionsdlg.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/userselectdlg.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/groupselectdlg.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/usertab.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/filemodedlg.ui
    ${CMAKE_SOURCE_DIR}/filesharing/advanced/kcm_sambaconf/expertuserdlg.ui
	propertiespagegui.ui
    )


kde4_automoc(${fileshare_propsdlgplugin_PART_SRCS})

kde4_add_plugin(fileshare_propsdlgplugin ${fileshare_propsdlgplugin_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} fileshare_propsdlgplugin )

target_link_libraries(fileshare_propsdlgplugin  ${KDE4_KIO_LIBS} )

install(TARGETS fileshare_propsdlgplugin  DESTINATION ${PLUGIN_INSTALL_DIR})


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


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

install( FILES fileshare_propsdlgplugin.desktop  DESTINATION ${SERVICES_INSTALL_DIR})




#original Makefile.am contents follow:

#METASOURCES = AUTO 
#
#
#kde_module_LTLIBRARIES = fileshare_propsdlgplugin.la
#
#fileshare_propsdlgplugin_la_SOURCES = \
#    propsdlgshareplugin.cpp 
#
#fileshare_propsdlgplugin_la_COMPILE_FIRST = propertiespagegui.h
#
#fileshare_propsdlgplugin_la_LIBADD = \
#    libpropsdlgplugin_common.la \
#    ../nfs/libfilesharenfs.la \
#    ../kcm_sambaconf/libfilesharesamba.la \
#	$(LIB_KIO)
#
#fileshare_propsdlgplugin_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
#
#AM_CPPFLAGS = -I../kcm_sambaconf $(all_includes)
#
#kde_services_DATA  = fileshare_propsdlgplugin.desktop
#
## Shared with the 'simple' kcm
#noinst_LTLIBRARIES = libpropsdlgplugin_common.la
#libpropsdlgplugin_common_la_SOURCES = propertiespage.cpp propertiespagegui.ui
