diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-10 20:36:49 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-21 19:05:50 +0900 |
| commit | 73da215882d7f96b6010fa99361c7cc10ec18bfb (patch) | |
| tree | cea1a5016a94a9dac26cab8227e2513224288be3 /src/plugins/scanfolder | |
| parent | bb099158e6c9fd0f1c2771cb9350d3b0a0b51a27 (diff) | |
| download | ktorrent-73da2158.tar.gz ktorrent-73da2158.zip | |
Conversion to cmake building system
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit bf204e931c605c73d761ec84943bb0cc94d7e7e4)
Diffstat (limited to 'src/plugins/scanfolder')
| -rw-r--r-- | src/plugins/scanfolder/CMakeLists.txt | 30 | ||||
| -rw-r--r-- | src/plugins/scanfolder/scanfolderplugin.cpp | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/plugins/scanfolder/CMakeLists.txt b/src/plugins/scanfolder/CMakeLists.txt new file mode 100644 index 0000000..ed5b9f7 --- /dev/null +++ b/src/plugins/scanfolder/CMakeLists.txt @@ -0,0 +1,30 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktscanfolderplugin (kpart) + +tde_add_kpart( ktscanfolderplugin AUTOMOC + SOURCES + scanfolderplugin.cpp scanfolderpluginsettings.kcfgc scanfolderprefpage.cpp + sfprefwidgetbase.ui scanfolderprefpagewidget.cpp scanfolder.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktscanfolderplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktscanfolderplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/scanfolder/scanfolderplugin.cpp b/src/plugins/scanfolder/scanfolderplugin.cpp index 710d1d0..58e1bea 100644 --- a/src/plugins/scanfolder/scanfolderplugin.cpp +++ b/src/plugins/scanfolder/scanfolderplugin.cpp @@ -185,3 +185,5 @@ namespace kt return version == KT_VERSION_MACRO; } } + +#include "scanfolderplugin.moc" |
