Commit bb969bcf authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use versionless Qt cmake target

This makes it easier to build against both Qt5 and Qt6

GIT_SILENT
parent 08e204a4
......@@ -96,7 +96,7 @@ target_link_libraries(DrKonqiInternal
KF5::Crash
KF5::Completion
KF5::WindowSystem
Qt5::DBus
Qt::DBus
KF5::WidgetsAddons
KF5::Wallet
......@@ -111,7 +111,7 @@ target_link_libraries(DrKonqiInternal
)
if (${Qt5X11Extras_FOUND})
target_link_libraries(DrKonqiInternal
Qt5::X11Extras
Qt::X11Extras
)
endif()
......
......@@ -35,8 +35,8 @@ ecm_qt_declare_logging_category(lib_SRCS
add_library(qbugzilla STATIC ${lib_SRCS})
target_link_libraries(qbugzilla
PUBLIC
Qt5::Core
Qt5::Network
Qt::Core
Qt::Network
KF5::CoreAddons
KF5::KIOCore
)
......@@ -18,9 +18,9 @@ ecm_add_tests(
connectiontest.cpp
producttest.cpp
LINK_LIBRARIES
Qt5::Core
Qt5::Test
Qt5::Network
Qt::Core
Qt::Test
Qt::Network
qbugzilla
)
......
......@@ -14,7 +14,7 @@ set(kdbgwin_SRCS
${CMAKE_CURRENT_BINARY_DIR}/../drkonqi_debug.cpp
)
set(COMMON_LIBS dbghelp psapi shlwapi Qt5::Core)
set(COMMON_LIBS dbghelp psapi shlwapi Qt::Core)
if ( MINGW )
add_executable(kdbgwin ${kdbgwin_SRCS} mingw_generator.h mingw_generator.cpp)
......
......@@ -13,5 +13,5 @@ ecm_qt_declare_logging_category(BACKTRACEPARSER_SRCS HEADER drkonqi_parser_debug
add_library(drkonqi_backtrace_parser STATIC ${BACKTRACEPARSER_SRCS})
target_link_libraries(drkonqi_backtrace_parser
PUBLIC
Qt5::Core
Qt::Core
)
......@@ -14,8 +14,8 @@ if(HAVE_UNAME)
ecm_add_tests(
systeminformationtest
LINK_LIBRARIES
Qt5::Core
Qt5::Test
Qt::Core
Qt::Test
DrKonqiInternal
)
endif()
......@@ -27,8 +27,8 @@ add_subdirectory(bugzillalibtest)
ecm_add_tests(
gdbbacktracelinetest
LINK_LIBRARIES
Qt5::Core
Qt5::Test
Qt::Core
Qt::Test
drkonqi_backtrace_parser
)
......
ecm_add_test(fakebacktracegenerator.cpp backtraceparsertest.cpp
TEST_NAME backtraceparsertest
LINK_LIBRARIES Qt5::Test Qt5::Core KF5::KIOWidgets drkonqi_backtrace_parser
LINK_LIBRARIES Qt::Test Qt::Core KF5::KIOWidgets drkonqi_backtrace_parser
)
add_executable(backtraceparsertest_manual fakebacktracegenerator.cpp backtraceparsertest_manual.cpp)
target_link_libraries(backtraceparsertest_manual Qt5::Core KF5::I18n KF5::KIOWidgets drkonqi_backtrace_parser)
target_link_libraries(backtraceparsertest_manual Qt::Core KF5::I18n KF5::KIOWidgets drkonqi_backtrace_parser)
ecm_mark_as_test(backtraceparsertest_manual)
ecm_mark_nongui_executable(backtraceparsertest_manual)
......@@ -2,6 +2,6 @@ add_executable(crashtest crashtest.cpp)
ecm_mark_as_test(crashtest)
ecm_mark_nongui_executable(crashtest)
target_link_libraries(crashtest
KF5::Crash KF5::CoreAddons Qt5::Gui
Qt5::Concurrent)
KF5::Crash KF5::CoreAddons Qt::Gui
Qt::Concurrent)
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