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

Use Qt:: directly

parent 8f4d4921
Pipeline #218901 passed with stage
in 14 minutes and 11 seconds
......@@ -11,7 +11,7 @@ macro(KIMAP_UNIT_TESTS)
add_executable(${_testname} ${_testname}.cpp)
add_test(NAME ${_testname} COMMAND ${_testname})
ecm_mark_as_test(${_testname})
target_link_libraries(${_testname} KF5IMAP Qt${QT_MAJOR_VERSION}::Test kimaptest Qt${QT_MAJOR_VERSION}::Network)
target_link_libraries(${_testname} KF5IMAP Qt::Test kimaptest Qt::Network)
set_target_properties(${_testname} PROPERTIES COMPILE_FLAGS -DTEST_DATA="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
set_tests_properties(${_testname} PROPERTIES RUN_SERIAL TRUE)
endforeach()
......
......@@ -16,7 +16,7 @@ endif()
generate_export_header(kimaptest)
add_library(KF5::kimaptest ALIAS kimaptest)
target_include_directories(KF5IMAP INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KIMAPTest>")
target_link_libraries(kimaptest KF5IMAP Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Network Qt${QT_MAJOR_VERSION}::Core KF5::CoreAddons KF5::KIOCore KF5::I18n)
target_link_libraries(kimaptest KF5IMAP Qt::Test Qt::Network Qt::Core KF5::CoreAddons KF5::KIOCore KF5::I18n)
install(TARGETS kimaptest EXPORT KF5IMAPTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -127,7 +127,7 @@ target_link_libraries(KF5IMAP
PUBLIC
KF5::Mime
KF5::CoreAddons
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
PRIVATE
KF5::KIOCore
KF5::Codecs
......
......@@ -3,7 +3,7 @@
kde_enable_exceptions()
add_executable(testimapidle testimapidle.cpp)
target_link_libraries(testimapidle KF5IMAP Qt${QT_MAJOR_VERSION}::Test KF5::KIOCore Qt${QT_MAJOR_VERSION}::Network)
target_link_libraries(testimapidle KF5IMAP Qt::Test KF5::KIOCore Qt::Network)
add_executable(testimapserver testimapserver.cpp)
target_link_libraries(testimapserver KF5IMAP Qt${QT_MAJOR_VERSION}::Test KF5::KIOCore Qt${QT_MAJOR_VERSION}::Network)
target_link_libraries(testimapserver KF5IMAP Qt::Test KF5::KIOCore Qt::Network)
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