
project(kioslave-home)

add_subdirectory( kdedmodule ) 



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

set(libkiohome_SRCS kio_home.cpp homeimpl.cpp)

set(kio_home_PART_SRCS ${libkiohome_SRCS})

kde4_automoc(${kio_home_PART_SRCS})

kde4_add_plugin(kio_home ${kio_home_PART_SRCS})


target_link_libraries(kio_home  ${KDE4_KIO_LIBS})

install(TARGETS kio_home  DESTINATION ${PLUGIN_INSTALL_DIR} )


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


########### next target ###############
if(KDE4_BUILD_TESTS)
set(testhome_SRCS testhome.cpp )

kde4_automoc(${testhome_SRCS})


kde4_add_executable(testhome ${testhome_SRCS} ${libkiohome_SRCS})

target_link_libraries(testhome  ${KDE4_KIO_LIBS} )

endif(KDE4_BUILD_TESTS)

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

install( FILES home.protocol  DESTINATION  ${SERVICES_INSTALL_DIR} )




