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/scheduler | |
| 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/scheduler')
| -rw-r--r-- | src/plugins/scheduler/CMakeLists.txt | 42 | ||||
| -rw-r--r-- | src/plugins/scheduler/bwswidget.cpp | 2 | ||||
| -rw-r--r-- | src/plugins/scheduler/schedulerplugin.cpp | 2 | ||||
| -rw-r--r-- | src/plugins/scheduler/schedulerprefpagewidget.cpp | 3 |
4 files changed, 47 insertions, 2 deletions
diff --git a/src/plugins/scheduler/CMakeLists.txt b/src/plugins/scheduler/CMakeLists.txt new file mode 100644 index 0000000..7ce787d --- /dev/null +++ b/src/plugins/scheduler/CMakeLists.txt @@ -0,0 +1,42 @@ +include_directories( + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/src/libktorrent + ${CMAKE_CURRENT_BINARY_DIR} +) + + +##### ktschedulerplugin (kpart) + +tde_add_kpart( ktschedulerplugin AUTOMOC + SOURCES + schedulerplugin.cpp schedulerpluginsettings.kcfgc bwscheduler.cpp schedulerprefpagewidget.cpp + schedulerpage.ui bwspage.ui bwsprefpagewidget.cpp bwswidget.cpp schedulerprefpage.cpp + LINK + ktorrent-shared tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdehtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other files + +install( + FILES ktschedulerpluginui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} +) + +install( + FILES + cell-a-0000.png cell-a-0001.png cell-a-0002.png cell-a-0003.png cell-a-0004.png + cell-b-0000.png cell-b-0001.png cell-b-0002.png cell-b-0003.png cell-b-0004.png + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/icons +) + +install( + FILES ktschedulerplugin.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +tde_create_translated_desktop( + SOURCE ktschedulerplugin.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) diff --git a/src/plugins/scheduler/bwswidget.cpp b/src/plugins/scheduler/bwswidget.cpp index 4423458..66ab4d9 100644 --- a/src/plugins/scheduler/bwswidget.cpp +++ b/src/plugins/scheduler/bwswidget.cpp @@ -332,3 +332,5 @@ namespace kt clearSelect(); } } + +#include "bwswidget.moc" diff --git a/src/plugins/scheduler/schedulerplugin.cpp b/src/plugins/scheduler/schedulerplugin.cpp index e0a71e7..5950cfa 100644 --- a/src/plugins/scheduler/schedulerplugin.cpp +++ b/src/plugins/scheduler/schedulerplugin.cpp @@ -150,3 +150,5 @@ namespace kt return version == KT_VERSION_MACRO; } } + +#include "schedulerplugin.moc" diff --git a/src/plugins/scheduler/schedulerprefpagewidget.cpp b/src/plugins/scheduler/schedulerprefpagewidget.cpp index 156f46f..7aaf61e 100644 --- a/src/plugins/scheduler/schedulerprefpagewidget.cpp +++ b/src/plugins/scheduler/schedulerprefpagewidget.cpp @@ -79,5 +79,4 @@ namespace kt } - - +#include "schedulerprefpagewidget.moc" |
