Commit ef6a9fa7 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Utilize kcoreaddons_add_plugin method

parent a2939b32
......@@ -13,7 +13,7 @@ add_definitions(-D'VERSION="${RELEASE_SERVICE_VERSION}"'
-D'VERSION_MICRO=${RELEASE_SERVICE_VERSION_MICRO}')
set (QT_MIN_VERSION "5.15.0")
set (KF5_MIN_VERSION "5.82")
set (KF5_MIN_VERSION "5.88")
set (LIBKTORRENT_MIN_VERSION "20.11.70")
set (Boost_MIN_VERSION "1.71.0")
......
add_library(ktorrent_bwscheduler MODULE)
kcoreaddons_add_plugin(ktorrent_bwscheduler INSTALL_NAMESPACE "ktorrent")
set(ktbwschedulerplugin_dbus_SRC)
set(screensaver_xml ${KTORRENT_DBUS_XML_DIR}/org.freedesktop.ScreenSaver.xml)
......@@ -33,6 +33,5 @@ target_link_libraries(
KF5::XmlGui
KF5::WidgetsAddons
)
install(TARGETS ktorrent_bwscheduler DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_bwschedulerui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
add_library(ktorrent_downloadorder MODULE)
kcoreaddons_add_plugin(ktorrent_downloadorder INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_downloadorder PRIVATE
downloadorderplugin.cpp
......@@ -20,5 +20,4 @@ target_link_libraries(
KF5::I18n
KF5::XmlGui
)
install(TARGETS ktorrent_downloadorder DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_downloadorderui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
......@@ -19,7 +19,7 @@ if (BUILD_WITH_GEOIP)
endif()
endif(BUILD_WITH_GEOIP)
add_library(ktorrent_infowidget MODULE)
kcoreaddons_add_plugin(ktorrent_infowidget INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_infowidget PRIVATE
infowidgetplugin.cpp
......@@ -65,5 +65,3 @@ target_link_libraries(
KF5::WidgetsAddons
${geoip_link}
)
install(TARGETS ktorrent_infowidget DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
add_library(ktorrent_ipfilter MODULE)
kcoreaddons_add_plugin(ktorrent_ipfilter INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_ipfilter PRIVATE
ipblocklist.cpp
......@@ -26,7 +26,6 @@ target_link_libraries(
KF5::TextWidgets
KF5::WidgetsAddons
)
install(TARGETS ktorrent_ipfilter DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
find_package(Qt5Test ${QT5_REQUIRED_VERSION})
if (Qt5Test_DIR)
......
add_library(ktorrent_logviewer MODULE)
kcoreaddons_add_plugin(ktorrent_logviewer INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_logviewer PRIVATE
logviewerplugin.cpp
......@@ -21,5 +21,3 @@ target_link_libraries(
KF5::I18n
KF5::XmlGui
)
install(TARGETS ktorrent_logviewer DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
add_library(ktorrent_magnetgenerator MODULE)
kcoreaddons_add_plugin(ktorrent_magnetgenerator INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_magnetgenerator PRIVATE
magnetgeneratorprefwidget.cpp
......@@ -21,5 +21,4 @@ target_link_libraries(
target_include_directories(ktorrent_magnetgenerator PRIVATE "$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>")
install(TARGETS ktorrent_magnetgenerator DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_magnetgeneratorui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
......@@ -3,7 +3,7 @@ find_package(Taglib REQUIRED)
#include_directories(${Qt5Multimedia_INCLUDE_DIRS})
include_directories(SYSTEM ${PHONON_INCLUDES})
add_library(ktorrent_mediaplayer MODULE)
kcoreaddons_add_plugin(ktorrent_mediaplayer INSTALL_NAMESPACE "ktorrent")
set(ktmediaplayerplugin_dbus_SRC)
set(screensaver_xml ${KTORRENT_DBUS_XML_DIR}/org.freedesktop.ScreenSaver.xml)
......@@ -45,5 +45,4 @@ target_link_libraries(
KF5::WidgetsAddons
# Qt5::MultimediaWidgets
)
install(TARGETS ktorrent_mediaplayer DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_mediaplayerui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
add_library(ktorrent_scanfolder MODULE)
kcoreaddons_add_plugin(ktorrent_scanfolder INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_scanfolder PRIVATE
scanthread.cpp
......@@ -21,5 +21,3 @@ target_link_libraries(
KF5::I18n
KF5::KIOCore
)
install(TARGETS ktorrent_scanfolder DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
add_library(ktorrent_scanforlostfiles MODULE)
kcoreaddons_add_plugin(ktorrent_scanforlostfiles INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_scanforlostfiles PRIVATE
scanforlostfilesplugin.cpp
......@@ -21,5 +21,3 @@ target_link_libraries(
KF5::I18n
KF5::KIOCore
)
install(TARGETS ktorrent_scanforlostfiles DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
add_library(ktorrent_search MODULE)
kcoreaddons_add_plugin(ktorrent_search INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_search PRIVATE
webview.cpp
......@@ -36,7 +36,6 @@ target_link_libraries(
KF5::XmlGui
)
install(TARGETS ktorrent_search DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_searchui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
add_subdirectory(opensearch)
......
include_directories(${CMAKE_BINARY_DIR})
add_library(ktorrent_shutdown MODULE)
kcoreaddons_add_plugin(ktorrent_shutdown INSTALL_NAMESPACE "ktorrent")
set(ktshutdownplugin_dbus_SRC)
......@@ -33,5 +33,4 @@ target_link_libraries(
KF5::WidgetsAddons
)
install(TARGETS ktorrent_shutdown DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_shutdownui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
......@@ -2,7 +2,7 @@ include_directories(${CMAKE_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/drawer)
add_library(ktorrent_stats MODULE)
kcoreaddons_add_plugin(ktorrent_stats INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_stats PRIVATE
drawer/ChartDrawer.cc
......@@ -35,4 +35,3 @@ target_link_libraries(
KF5::Plotting
KF5::WidgetsAddons
)
install(TARGETS ktorrent_stats DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
add_library(ktorrent_syndication MODULE)
kcoreaddons_add_plugin(ktorrent_syndication INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_syndication PRIVATE
syndicationplugin.cpp
......@@ -37,7 +37,6 @@ target_link_libraries(
KF5::WidgetsAddons
KF5::XmlGui
)
install(TARGETS ktorrent_syndication DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
install(FILES ktorrent_syndicationui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
add_subdirectory(icons)
add_library(ktorrent_upnp MODULE)
kcoreaddons_add_plugin(ktorrent_upnp INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_upnp PRIVATE
upnpplugin.cpp
......@@ -20,5 +20,3 @@ target_link_libraries(
KF5::I18n
KF5::WidgetsAddons
)
install(TARGETS ktorrent_upnp DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
add_library(ktorrent_zeroconf MODULE)
kcoreaddons_add_plugin(ktorrent_zeroconf INSTALL_NAMESPACE "ktorrent")
target_sources(ktorrent_zeroconf PRIVATE
zeroconfplugin.cpp
......@@ -17,5 +17,3 @@ target_link_libraries(ktorrent_zeroconf
KF5::DNSSD
KF5::I18n
)
install(TARGETS ktorrent_zeroconf DESTINATION ${KTORRENT_PLUGIN_INSTALL_DIR} )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment