summaryrefslogtreecommitdiffstats
path: root/src/plugins/scanfolder
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-10 20:36:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-03-21 14:10:54 +0900
commitbf204e931c605c73d761ec84943bb0cc94d7e7e4 (patch)
treeb11fccbf3b4846f07130d8626e3f40103dd4cbc4 /src/plugins/scanfolder
parent44ef0bd5fe47a43e47aec5f7981b6c1d728dd9a8 (diff)
downloadktorrent-bf204e931c605c73d761ec84943bb0cc94d7e7e4.tar.gz
ktorrent-bf204e931c605c73d761ec84943bb0cc94d7e7e4.zip
Conversion to cmake building system
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/plugins/scanfolder')
-rw-r--r--src/plugins/scanfolder/CMakeLists.txt30
-rw-r--r--src/plugins/scanfolder/scanfolderplugin.cpp2
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"