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
|
|
|
|
)
|
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
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
target_link_libraries(kio_trash
|
2023-06-17 23:26:56 +03:00
|
|
|
KDE4::kio
|
|
|
|
KDE4::solid
|
2023-06-17 18:38:55 +03:00
|
|
|
)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
install(
|
|
|
|
TARGETS kio_trash
|
|
|
|
DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR}
|
|
|
|
)
|
2022-12-06 04:05:59 +02:00
|
|
|
|
2014-11-15 04:16:00 +02:00
|
|
|
########### next target ###############
|
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
set(ktrash_SRCS ktrash.cpp)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2015-09-01 04:37:19 +03:00
|
|
|
add_executable(ktrash ${ktrash_SRCS})
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2023-06-17 23:26:56 +03:00
|
|
|
target_link_libraries(ktrash KDE4::kio)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
install(
|
|
|
|
TARGETS ktrash
|
|
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
|
|
)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
########### 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})
|
2023-06-17 18:38:55 +03:00
|
|
|
target_link_libraries(kcm_trash
|
2023-06-17 23:26:56 +03:00
|
|
|
KDE4::kdeui
|
|
|
|
KDE4::kio
|
|
|
|
KDE4::solid
|
2023-06-17 18:38:55 +03:00
|
|
|
)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
install(
|
|
|
|
TARGETS kcm_trash
|
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR}
|
|
|
|
)
|
2014-11-15 04:16:00 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2023-06-17 18:38:55 +03:00
|
|
|
install(
|
|
|
|
FILES trash.protocol
|
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
|
|
)
|
|
|
|
install(
|
|
|
|
FILES kcmtrash.desktop
|
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
|
|
)
|