Commit d5b96763 authored by Laurent Montel's avatar Laurent Montel
Browse files

Prepare cmake to qt6 support

parent efcfdaa3
Pipeline #215589 passed with stage
in 2 minutes and 7 seconds
......@@ -3,7 +3,7 @@ ecm_mark_nongui_executable(ktmagnetdownloader)
target_sources(ktmagnetdownloader PRIVATE magnetdownloader.cpp magnettest.cpp)
target_link_libraries(ktmagnetdownloader ktcore Qt5::Widgets Qt5::Network)
target_link_libraries(ktmagnetdownloader ktcore Qt::Widgets Qt::Network)
install(TARGETS ktmagnetdownloader ${INSTALL_TARGETS_DEFAULT_ARGS})
......@@ -6,7 +6,7 @@ ki18n_wrap_ui(ktupnptest upnptestwidget.ui)
target_link_libraries(
ktupnptest
Qt5::Network
Qt::Network
KF5::Torrent
KF5::CoreAddons
KF5::I18n
......
......@@ -25,7 +25,7 @@ target_link_libraries(
KF5::WidgetsAddons
)
find_package(Qt5Test ${QT5_REQUIRED_VERSION})
if (Qt5Test_DIR)
find_package(Qt${QT_MAJOR_VERSION}Test ${QT5_REQUIRED_VERSION})
if (Qt${QT_MAJOR_VERSION}Test_DIR)
add_subdirectory(tests)
endif()
include(ECMAddTests)
ecm_add_test(ipblocklisttest.cpp ../ipblocklist.cpp TEST_NAME ipblocklisttest LINK_LIBRARIES ktcore Qt5::Core Qt5::Network KF5::Torrent Qt5::Test)
ecm_add_test(ipblocklisttest.cpp ../ipblocklist.cpp TEST_NAME ipblocklisttest LINK_LIBRARIES ktcore Qt::Core Qt::Network KF5::Torrent Qt::Test)
......@@ -41,6 +41,6 @@ target_link_libraries(
KF5::KIOFileWidgets
KF5::XmlGui
KF5::WidgetsAddons
# Qt5::MultimediaWidgets
# Qt:::MultimediaWidgets
)
install(FILES ktorrent_mediaplayerui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/ktorrent )
......@@ -19,7 +19,7 @@ kconfig_add_kcfg_files(ktorrent_search searchpluginsettings.kcfgc)
target_link_libraries(
ktorrent_search
ktcore
Qt5::WebEngineWidgets
Qt::WebEngineWidgets
KF5::Torrent
KF5::CoreAddons
KF5::Completion
......
......@@ -24,7 +24,7 @@ ki18n_wrap_ui(ktorrent_syndication feedwidget.ui managefiltersdlg.ui filteredito
target_link_libraries(
ktorrent_syndication
ktcore
Qt5::WebEngineWidgets
Qt::WebEngineWidgets
KF5::Torrent
KF5::CoreAddons
KF5::ConfigCore
......
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