3 add_definitions( -DKDE_DEFAULT_DEBUG_AREA=7130 )
5 add_subdirectory(tests)
7 include_directories(${STRIGI_INCLUDE_DIR})
9 set (trashcommon_PART_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/trashimpl.cpp
10 ${CMAKE_CURRENT_SOURCE_DIR}/discspaceutil.cpp
13 ########### next target ###############
15 set(kio_trash_PART_SRCS kio_trash.cpp ${trashcommon_PART_SRCS})
18 kde4_add_plugin(kio_trash ${kio_trash_PART_SRCS})
21 target_link_libraries(kio_trash ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS})
23 install(TARGETS kio_trash DESTINATION ${PLUGIN_INSTALL_DIR} )
25 ########### next target ###############
27 kde4_add_library(trash MODULE trashthroughanalyzer.cpp ${trashcommon_PART_SRCS})
28 target_link_libraries(trash
30 ${STRIGI_STREAMANALYZER_LIBRARY}
33 set_target_properties(trash PROPERTIES
35 #install(TARGETS trash LIBRARY DESTINATION ${LIB_INSTALL_DIR}/strigi)
37 ########### next target ###############
39 set(ktrash_SRCS ktrash.cpp )
42 kde4_add_executable(ktrash NOGUI ${ktrash_SRCS})
44 target_link_libraries(ktrash ${KDE4_KIO_LIBS} )
46 install(TARGETS ktrash ${INSTALL_TARGETS_DEFAULT_ARGS})
48 ########### next target ###############
50 set(kcm_trash_PART_SRCS kcmtrash.cpp ${trashcommon_PART_SRCS})
51 kde4_add_plugin(kcm_trash ${kcm_trash_PART_SRCS})
52 target_link_libraries(kcm_trash ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS})
54 install(TARGETS kcm_trash DESTINATION ${PLUGIN_INSTALL_DIR})
56 ########### install files ###############
58 install( FILES trash.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
59 install( FILES kcmtrash.desktop DESTINATION ${SERVICES_INSTALL_DIR} )