Commit 81f19168 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use Qt:: directly

parent 5e8452d0
Pipeline #218895 passed with stage
in 5 minutes and 50 seconds
......@@ -339,7 +339,7 @@ endif()
if (ENABLE_X11)
if (QT_MAJOR_VERSION STREQUAL "5")
target_link_libraries(kalarm_bin Qt${QT_MAJOR_VERSION}::X11Extras ${X11_X11_LIB})
target_link_libraries(kalarm_bin Qt::X11Extras ${X11_X11_LIB})
elseif (Qt6_VERSION_MINOR LESS 2)
target_link_libraries(kalarm_bin Qt6::GuiPrivate ${X11_X11_LIB})
else()
......
......@@ -25,7 +25,7 @@ add_executable(kalarmautostart ${kalarmautostart_SRCS})
target_link_libraries(kalarmautostart
KF5::I18n
KF5::CoreAddons
Qt${QT_MAJOR_VERSION}::Widgets
Qt${QT_MAJOR_VERSION}::DBus)
Qt::Widgets
Qt::DBus)
install(TARGETS kalarmautostart ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
......@@ -14,8 +14,8 @@ macro(macro_unit_tests)
KF5::CalendarCore
KF5::Holidays
kalarmcalendar
Qt${QT_MAJOR_VERSION}::DBus
Qt${QT_MAJOR_VERSION}::Test)
Qt::DBus
Qt::Test)
target_include_directories(${_testname} PUBLIC "$<BUILD_INTERFACE:${kalarm_SOURCE_DIR}/src/kalarmcalendar;${kalarm_BINARY_DIR}/src/kalarmcalendar>")
endforeach()
endmacro()
......
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