Commit 3e574109 authored by Laurent Montel's avatar Laurent Montel
Browse files

Use Qt:: directly

parent a88f82e9
Pipeline #218924 passed with stage
in 16 minutes and 7 seconds
......@@ -24,7 +24,7 @@ macro( add_messagecomposer_test _source )
KF5::MessageCore
KF5::TemplateParser
KF5::PimTextEdit
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
KF5::IdentityManagementWidgets
KF5::Contacts
KF5::AkonadiCore
......@@ -50,7 +50,7 @@ macro( add_messagecomposer_cryptotest _source )
KF5::Libkdepim
KF5::PimTextEdit
KF5::AkonadiCore
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
KF5::IconThemes
KF5::Completion
KF5::MailTransport
......@@ -108,7 +108,7 @@ ecm_add_test( nearexpirycheckertest.cpp setupenv.cpp
NAME_PREFIX "messagecomposer-"
LINK_LIBRARIES
KF5::MessageComposer
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
KF5::Libkleo
)
......@@ -122,7 +122,7 @@ ecm_add_test(followupreminderselectdatedialogtest.cpp
KF5::AkonadiWidgets
KF5::CalendarCore
KF5::MessageComposer
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
)
ecm_add_test(attachmentvcardfromaddressbookjobtest.cpp
......@@ -130,5 +130,5 @@ ecm_add_test(attachmentvcardfromaddressbookjobtest.cpp
LINK_LIBRARIES
KF5::Contacts
KF5::MessageComposer
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
)
......@@ -5,7 +5,7 @@ add_definitions( -DSIGNATURE_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" )
macro(add_composerng_autocorrect_unittest _source)
ecm_add_test(${_source}
NAME_PREFIX "messagecomposer-composerng-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::MessageComposer KF5::XmlGui
LINK_LIBRARIES Qt::Test KF5::MessageComposer KF5::XmlGui
)
endmacro()
......
......@@ -3,7 +3,7 @@
macro(add_composer_unittest _source)
ecm_add_test(${_source}
NAME_PREFIX "messagecomposer-composer-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::MessageComposer
LINK_LIBRARIES Qt::Test KF5::MessageComposer
)
endmacro()
......
......@@ -3,6 +3,6 @@
ecm_add_test(imagescalingtest.cpp
NAME_PREFIX "messagecomposer-imagescaling-"
LINK_LIBRARIES KF5::Mime KF5::MessageComposer KF5::MessageViewer KF5::MessageCore KF5::TemplateParser
KF5::PimTextEdit Qt${QT_MAJOR_VERSION}::Test KF5::IdentityManagement KF5::Contacts
KF5::PimTextEdit Qt::Test KF5::IdentityManagement KF5::Contacts
KF5::AkonadiCore
)
......@@ -3,5 +3,5 @@
ecm_add_test(mdnwarningwidgetjobtest.cpp
TEST_NAME mdnwarningwidgetjobtest
NAME_PREFIX "messagecomposer-mdn-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::AkonadiCore KF5::MessageComposer
LINK_LIBRARIES Qt::Test KF5::AkonadiCore KF5::MessageComposer
)
......@@ -3,8 +3,8 @@
add_executable(mndadvicedialoggui mndadvicedialoggui.cpp)
ecm_mark_as_test(mndadvicedialoggui)
target_link_libraries(mndadvicedialoggui
Qt${QT_MAJOR_VERSION}::Core
Qt${QT_MAJOR_VERSION}::Gui
Qt::Core
Qt::Gui
KF5::MessageComposer
KF5::I18n
)
......@@ -3,7 +3,7 @@
macro(add_plugineditor_unittest _source)
ecm_add_test(${_source}
NAME_PREFIX "messagecomposer-plugineditor-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::MessageComposer KF5::XmlGui
LINK_LIBRARIES Qt::Test KF5::MessageComposer KF5::XmlGui
)
endmacro()
......
......@@ -3,7 +3,7 @@
macro(add_composer_snippet_unittest _source)
ecm_add_test(${_source}
NAME_PREFIX "messagecomposer-snippet-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::MessageComposer KF5::Completion
LINK_LIBRARIES Qt::Test KF5::MessageComposer KF5::Completion
)
endmacro()
......
......@@ -2,5 +2,5 @@
# SPDX-FileCopyrightText: none
add_executable(statusbarlabeltoggledstatetest statusbarlabeltoggledstatetest.cpp)
ecm_mark_as_test(kmail-statusbarlabeltoggledstatetest)
target_link_libraries( statusbarlabeltoggledstatetest Qt${QT_MAJOR_VERSION}::Test KF5::KIOWidgets KF5::I18n KF5::MessageComposer)
target_link_libraries( statusbarlabeltoggledstatetest Qt::Test KF5::KIOWidgets KF5::I18n KF5::MessageComposer)
......@@ -13,7 +13,7 @@ macro(add_messagecore_test _source)
add_executable( ${_name} ${_test} ${_name}.h)
add_test(NAME ${_name} COMMAND ${_name} )
ecm_mark_as_test(${_name})
target_link_libraries( ${_name} Qt${QT_MAJOR_VERSION}::Test KF5::Libkleo KF5::MessageCore Qt${QT_MAJOR_VERSION}::Widgets KF5::Archive KF5::Completion KF5::ConfigCore KF5::CoreAddons)
target_link_libraries( ${_name} Qt::Test KF5::Libkleo KF5::MessageCore Qt::Widgets KF5::Archive KF5::Completion KF5::ConfigCore KF5::CoreAddons)
endmacro()
......@@ -32,8 +32,8 @@ macro( add_messagecore_cryptotest _source )
KF5::Libkleo
KF5::MessageCore
KF5::MimeTreeParser
Qt${QT_MAJOR_VERSION}::Test
Qt${QT_MAJOR_VERSION}::Widgets
Qt::Test
Qt::Widgets
)
add_gpg_crypto_test(${_name} messagecore-${_name})
endmacro()
......
......@@ -92,7 +92,7 @@ target_link_libraries(KF5MessageCore
KF5::PimTextEdit
KF5::Archive
KF5::ConfigWidgets
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
KF5::I18n
KF5::IdentityManagement
KF5::MimeTreeParser
......
......@@ -6,7 +6,7 @@ macro(messagelist_unittest _source)
ecm_add_test(${_source}
TEST_NAME ${_name}
NAME_PREFIX "messagelist-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::MessageCore KF5::MessageList KF5::PimCommonAkonadi
LINK_LIBRARIES Qt::Test KF5::MessageCore KF5::MessageList KF5::PimCommonAkonadi
)
endmacro ()
......
......@@ -5,7 +5,7 @@ macro(add_messagelist_widget_unittest _source)
ecm_add_test(${_source}
TEST_NAME ${_name}
NAME_PREFIX "messagelist-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test KF5::MessageCore KF5::MessageList KF5::PimCommon KF5::IconThemes
LINK_LIBRARIES Qt::Test KF5::MessageCore KF5::MessageList KF5::PimCommon KF5::IconThemes
)
endmacro ()
......
......@@ -19,7 +19,7 @@ macro(add_messageviewer_unittest _source)
ecm_add_test(${_source} setupenv.cpp util.cpp ${_name}.h
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer KF5::Libkleo ${qgpgme_lib} Qt${QT_MAJOR_VERSION}::Test KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::CalendarCore KF5::WebEngineViewer
LINK_LIBRARIES KF5::MessageViewer KF5::Libkleo ${qgpgme_lib} Qt::Test KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::CalendarCore KF5::WebEngineViewer
)
endmacro ()
......@@ -28,7 +28,7 @@ macro(add_messageviewer_class_unittest _source _additionalSource)
ecm_add_test(${_source} ${_additionalSource} ${_name}.h
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer Qt${QT_MAJOR_VERSION}::Test KF5::IconThemes KF5::XmlGui KF5::I18n
LINK_LIBRARIES KF5::MessageViewer Qt::Test KF5::IconThemes KF5::XmlGui KF5::I18n
)
endmacro ()
......@@ -40,7 +40,7 @@ macro(add_messageviewer_mailsourceviewbrowserwidget_unittest _source)
ecm_add_test(${_source} ../src/widgets/mailsourceviewtextbrowserwidget.cpp ../src/findbar/findbarsourceview.cpp ${test_libmessageviewer_SRCS} ${_name}.h
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Gui Qt${QT_MAJOR_VERSION}::Widgets KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::CalendarCore KF5::PimTextEdit KF5::PimCommon KF5::MessageViewer KF5::WebEngineViewer KF5::SyntaxHighlighting KF5::I18n KF5::IconThemes
LINK_LIBRARIES Qt::Test Qt::Gui Qt::Widgets KF5::KIOCore KF5::Mime KF5::AkonadiCore KF5::CalendarCore KF5::PimTextEdit KF5::PimCommon KF5::MessageViewer KF5::WebEngineViewer KF5::SyntaxHighlighting KF5::I18n KF5::IconThemes
)
endmacro ()
......
......@@ -416,7 +416,7 @@ target_link_libraries(KF5MessageViewer
PRIVATE
KF5::SyntaxHighlighting
KF5::ItemViews
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
KF5::WebEngineViewer
KF5::GrantleeTheme
KF5::MailTransportAkonadi
......@@ -432,7 +432,7 @@ target_link_libraries(KF5MessageViewer
KF5::XmlGui
KF5::AkonadiContact
${TEMPLATES_LIB}
Qt${QT_MAJOR_VERSION}::PrintSupport
Qt::PrintSupport
${Inotify_LIBRARIES}
qca-qt${QT_MAJOR_VERSION}
KF5::Notifications
......
......@@ -12,7 +12,7 @@ macro(add_messageviewer_dkim_verify_unittest _source)
ecm_add_test(${_source} ${_name}.h
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer KF5::WebEngineViewer KF5::Libkleo ${qgpgme_lib} Qt${QT_MAJOR_VERSION}::Test qca-qt${QT_MAJOR_VERSION} KF5::ItemViews
LINK_LIBRARIES KF5::MessageViewer KF5::WebEngineViewer KF5::Libkleo ${qgpgme_lib} Qt::Test qca-qt${QT_MAJOR_VERSION} KF5::ItemViews
)
endmacro ()
......
......@@ -3,21 +3,21 @@
set(dkimtest_lookupkey_SRCS main.cpp lookupkey.cpp)
add_executable(dkimtest_lookupkey ${dkimtest_lookupkey_SRCS})
target_link_libraries(dkimtest_lookupkey
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
)
set(dkimtest_checkrsapublickey_SRCS checkrsapublickey.cpp)
add_executable(dkimtest_checkrsapublickey ${dkimtest_checkrsapublickey_SRCS})
target_link_libraries(dkimtest_checkrsapublickey
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
qca-qt${QT_MAJOR_VERSION}
)
set(dkimtest_checksignature_SRCS checksignature.cpp)
add_executable(dkimtest_checksignature ${dkimtest_checksignature_SRCS})
target_link_libraries(dkimtest_checksignature
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
KF5::MessageViewer
qca-qt${QT_MAJOR_VERSION}
)
......@@ -25,7 +25,7 @@ target_link_libraries(dkimtest_checksignature
set(dkimtest_dmarclookupkey_SRCS dmarclookupkey.cpp)
add_executable(dkimtest_dmarclookupkey ${dkimtest_dmarclookupkey_SRCS})
target_link_libraries(dkimtest_dmarclookupkey
Qt${QT_MAJOR_VERSION}::Network
Qt::Network
KF5::MessageViewer
qca-qt${QT_MAJOR_VERSION}
)
......@@ -12,7 +12,7 @@ ecm_add_test(grantleeheaderstyletest.cpp grantleeheaderstyletest.h
KF5::IconThemes
KF5::MessageViewer
KF5::Mime
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
)
ecm_add_test(grantleeheaderformattertest.cpp grantleeheaderformattertest.h
......@@ -24,7 +24,7 @@ ecm_add_test(grantleeheaderformattertest.cpp grantleeheaderformattertest.h
KF5::IconThemes
KF5::MessageViewer
KF5::Mime
Qt${QT_MAJOR_VERSION}::Test
Qt::Test
)
set_tests_properties(
......
......@@ -3,6 +3,6 @@
ecm_add_test(webengineembedparttest.cpp ../webengineembedpart.cpp webengineembedparttest.h
TEST_NAME webengineembedparttest
NAME_PREFIX "messageviewer-webengine-"
LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test Qt${QT_MAJOR_VERSION}::Core
LINK_LIBRARIES Qt::Test Qt::Core
)
......@@ -5,7 +5,7 @@ macro(add_messageviewer_mdn_unittest _source)
ecm_add_test(${_source} ${_name}.h
TEST_NAME ${_name}
NAME_PREFIX "messageviewer-"
LINK_LIBRARIES KF5::MessageViewer Qt${QT_MAJOR_VERSION}::Test
LINK_LIBRARIES KF5::MessageViewer Qt::Test
)
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