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

Use Qt:: directly

parent 14785b3d
Pipeline #218920 passed with stage
in 3 minutes and 43 seconds
......@@ -6,7 +6,7 @@ include(ECMAddTests)
find_package(Qt${QT_MAJOR_VERSION}Test ${REQUIRED_QT_VERSION} CONFIG QUIET)
if(NOT TARGET Qt${QT_MAJOR_VERSION}::Test)
if(NOT TARGET Qt::Test)
message(STATUS "Qt${QT_MAJOR_VERSION}Test not found, autotests will not be built.")
return()
endif()
......@@ -15,7 +15,7 @@ ecm_add_test(
flatkeylistmodeltest.cpp
abstractkeylistmodeltest.cpp
TEST_NAME flatkeylistmodeltest
LINK_LIBRARIES KF5::Libkleo Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::Libkleo Qt::Test
)
ecm_add_test(
......@@ -23,29 +23,29 @@ ecm_add_test(
abstractkeylistmodeltest.cpp
abstractkeylistmodeltest.h
TEST_NAME hierarchicalkeylistmodeltest
LINK_LIBRARIES KF5::Libkleo Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::Libkleo Qt::Test
)
ecm_add_test(
keyresolvercoretest.cpp
keyresolvercoretest.qrc
TEST_NAME keyresolvercoretest
LINK_LIBRARIES KF5::Libkleo Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::Libkleo Qt::Test
)
ecm_add_tests(
editdirectoryservicedialogtest.cpp
LINK_LIBRARIES KF5::Libkleo KF5::WidgetsAddons Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::Libkleo KF5::WidgetsAddons Qt::Widgets Qt::Test
)
ecm_add_tests(
keyselectioncombotest.cpp
keyserverconfigtest.cpp
newkeyapprovaldialogtest.cpp
LINK_LIBRARIES KF5::Libkleo Qt${QT_MAJOR_VERSION}::Widgets Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::Libkleo Qt::Widgets Qt::Test
)
ecm_add_tests(
hextest.cpp
LINK_LIBRARIES KF5::Libkleo Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::Libkleo Qt::Test
)
......@@ -168,7 +168,7 @@ target_sources(KF5Libkleo PRIVATE # make this a separate lib.
)
target_link_libraries(KF5Libkleo PUBLIC Gpgmepp PRIVATE Qt${QT_MAJOR_VERSION}::Widgets
target_link_libraries(KF5Libkleo PUBLIC Gpgmepp PRIVATE Qt::Widgets
KF5::I18n
KF5::Completion
KF5::ConfigCore
......
......@@ -8,7 +8,7 @@ macro( add_kleo_test _source )
get_filename_component( _name ${_source} NAME_WE )
add_executable( ${_name} ${_test} )
ecm_mark_as_test(kleo-${_name})
target_link_libraries(${_name} KF5::Libkleo Qt${QT_MAJOR_VERSION}::Widgets KF5::CoreAddons KF5::I18n KF5::WidgetsAddons)
target_link_libraries(${_name} KF5::Libkleo Qt::Widgets KF5::CoreAddons KF5::I18n KF5::WidgetsAddons)
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