2022-10-23 00:00:56 +03:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=7116)
|
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
set(trashcommon_PART_SRCS
|
|
|
|
trashimpl.cpp
|
|
|
|
discspaceutil.cpp
|
|
|
|
trashsizecache.cpp
|
|
|
|
kinterprocesslock.cpp
|
|
|
|
)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2014-11-15 05:21:19 +02:00
|
|
|
set(kio_trash_PART_SRCS kio_trash.cpp ${trashcommon_PART_SRCS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2022-12-06 04:05:59 +02:00
|
|
|
add_executable(kio_trash ${kio_trash_PART_SRCS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
target_link_libraries(kio_trash ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS})
|
|
|
|
|
2022-12-06 04:05:59 +02:00
|
|
|
install(TARGETS kio_trash DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR} )
|
|
|
|
|
2014-11-15 04:16:00 +02:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(ktrash_SRCS ktrash.cpp )
|
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
add_executable(ktrash ${ktrash_SRCS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
target_link_libraries(ktrash ${KDE4_KIO_LIBS} )
|
|
|
|
|
|
|
|
install(TARGETS ktrash ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2014-11-15 05:21:19 +02:00
|
|
|
set(kcm_trash_PART_SRCS kcmtrash.cpp ${trashcommon_PART_SRCS})
|
|
|
|
kde4_add_plugin(kcm_trash ${kcm_trash_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_trash ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install(TARGETS kcm_trash DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2020-02-08 19:29:32 +00:00
|
|
|
install( FILES trash.protocol DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|
|
|
|
install( FILES kcmtrash.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
|