kde-workspace/kioslave/trash/CMakeLists.txt
Ivailo Monev 591b538337 generic: replace installation paths with KDE4_ prefixed
see commit in kdelibs repository

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2020-02-08 20:13:13 +00:00

45 lines
1.2 KiB
CMake

if(ENABLE_TESTING)
add_subdirectory(tests)
endif()
set(trashcommon_PART_SRCS
trashimpl.cpp
discspaceutil.cpp
trashsizecache.cpp
kinterprocesslock.cpp
)
########### next target ###############
set(kio_trash_PART_SRCS kio_trash.cpp ${trashcommon_PART_SRCS})
if(NOT MINGW)
kde4_add_plugin(kio_trash ${kio_trash_PART_SRCS})
target_link_libraries(kio_trash ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS})
install(TARGETS kio_trash DESTINATION ${KDE4_PLUGIN_INSTALL_DIR} )
endif(NOT MINGW)
########### next target ###############
set(ktrash_SRCS ktrash.cpp )
add_executable(ktrash ${ktrash_SRCS})
target_link_libraries(ktrash ${KDE4_KIO_LIBS} )
install(TARGETS ktrash ${INSTALL_TARGETS_DEFAULT_ARGS})
########### next target ###############
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})
install(TARGETS kcm_trash DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
########### install files ###############
install( FILES trash.protocol DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )
install( FILES kcmtrash.desktop DESTINATION ${KDE4_SERVICES_INSTALL_DIR} )