mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00

automatically replaced via: find -name CMakeLists.txt -exec sed -e 's|${KDE4_PLASMA_LIBS}|KDE4::plasma|g' -e 's|${KDE4_KIO_LIBS}|KDE4::kio|g' -e 's|${KDE4_SOLID_LIBS}|KDE4::solid|g' -e 's|${KDE4_KFILE_LIBS}|KDE4::kfile|g' -e 's|${KDE4_KDECORE_LIBS}|KDE4::kdecore|g' -e 's|${KDE4_KDEUI_LIBS}|KDE4::kdeui|g' -e 's|${KDE4_KCMUTILS_LIBS}|KDE4::kcmutils|g' -e 's|${KDE4_KDECLARATIVE_LIBS}|KDE4::kdeclarative|g' -e 's|${KDE4_KPTY_LIBS}|KDE4::kpty|g' -e 's|${KDE4_KEMAIL_LIBS}|KDE4::kemail|g' -e 's|${KDE4_KMEDIAPLAYER_LIBS}|KDE4::kmediaplayer|g' -e 's|${KDE4_KPARTS_LIBS}|KDE4::kparts|g' -e 's|${KDE4_KIDLETIME_LIBS}|KDE4::kidletime|g' -e 's|${KDE4_KTEXTEDITOR_LIBS}|KDE4::ktexteditor|g' -e 's|${KDE4_KPASSWDSTORE_LIBS}|KDE4::kpasswdstore|g' -e 's|${KDE4_KARCHIVE_LIBS}|KDE4::karchive|g' -e 's|${KDE4_KDNSSD_LIBS}|KDE4::kdnssd|g' -e 's|${KDE4_KNOTIFYCONFIG_LIBS}|KDE4::knotifyconfig|g' -e 's|${KDE4_KEXIV2_LIBS}|KDE4::kexiv2|g' -i {} + Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
66 lines
1.2 KiB
CMake
66 lines
1.2 KiB
CMake
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=7116)
|
|
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
set(trashcommon_PART_SRCS
|
|
trashimpl.cpp
|
|
discspaceutil.cpp
|
|
trashsizecache.cpp
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
set(kio_trash_PART_SRCS kio_trash.cpp ${trashcommon_PART_SRCS})
|
|
|
|
add_executable(kio_trash ${kio_trash_PART_SRCS})
|
|
|
|
target_link_libraries(kio_trash
|
|
KDE4::kio
|
|
KDE4::solid
|
|
)
|
|
|
|
install(
|
|
TARGETS kio_trash
|
|
DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR}
|
|
)
|
|
|
|
########### next target ###############
|
|
|
|
set(ktrash_SRCS ktrash.cpp)
|
|
|
|
add_executable(ktrash ${ktrash_SRCS})
|
|
|
|
target_link_libraries(ktrash KDE4::kio)
|
|
|
|
install(
|
|
TARGETS ktrash
|
|
DESTINATION ${KDE4_BIN_INSTALL_DIR}
|
|
)
|
|
|
|
########### 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
|
|
KDE4::kio
|
|
KDE4::solid
|
|
)
|
|
|
|
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}
|
|
)
|