Commit 07f8e7e3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reduce number of variables

parent 9eeae2ad
Pipeline #66782 canceled with stage
......@@ -7,35 +7,29 @@ include_directories(
)
########### dbus test ###############
set( kmail_displaymenu_source displaymessageformatactionmenutest.cpp)
add_executable( displaymessageformatactionmenutest ${kmail_displaymenu_source} )
add_executable( displaymessageformatactionmenutest displaymessageformatactionmenutest.cpp )
add_test(NAME displaymessageformatactionmenutest COMMAND displaymessageformatactionmenutest )
ecm_mark_as_test(kmail-displaymessageformatactionmenutest)
target_link_libraries( displaymessageformatactionmenutest Qt::Test KF5::MessageViewer KF5::I18n kmailprivate)
#####
set( kmail_identityaddvcarddialog_source identityaddvcarddialogtest.cpp )
add_executable( identityaddvcarddialogtest ${kmail_identityaddvcarddialog_source})
add_executable( identityaddvcarddialogtest identityaddvcarddialogtest.cpp)
ecm_mark_as_test(kmail-identityaddvcarddialogtest)
target_link_libraries( identityaddvcarddialogtest Qt::Test Qt::Widgets KF5::Completion KF5::KIOWidgets KF5::I18n kmailprivate)
#####
set( kmail_createfollowupreminderonexistingmessagejobtest_source createfollowupreminderonexistingmessagejobtest.cpp)
add_executable( createfollowupreminderonexistingmessagejobtest ${kmail_createfollowupreminderonexistingmessagejobtest_source})
add_executable( createfollowupreminderonexistingmessagejobtest createfollowupreminderonexistingmessagejobtest.cpp)
ecm_mark_as_test(kmail_createfollowupreminderonexistingmessagejobtest)
target_link_libraries( createfollowupreminderonexistingmessagejobtest Qt::Test Qt::Widgets KF5::AkonadiCore KF5::CalendarCore KF5::Mime KF5::MessageComposer kmailprivate)
#####
set( kmail_cryptostateindicatorwidgettest_source cryptostateindicatorwidgettest.cpp)
add_executable( cryptostateindicatorwidgettest ${kmail_cryptostateindicatorwidgettest_source})
add_executable( cryptostateindicatorwidgettest cryptostateindicatorwidgettest.cpp)
add_test(NAME cryptostateindicatorwidgettest COMMAND cryptostateindicatorwidgettest)
ecm_mark_as_test(cryptostateindicatorwidgettest)
target_link_libraries( cryptostateindicatorwidgettest Qt::Test KF5::MessageCore Qt::Widgets KF5::ConfigWidgets KF5::I18n kmailprivate)
#####
set( kmail_kactionmenutransporttest_source kactionmenutransporttest.cpp)
add_executable( kactionmenutransporttest ${kmail_kactionmenutransporttest_source})
add_executable( kactionmenutransporttest kactionmenutransporttest.cpp)
add_test(NAME kactionmenutransporttest COMMAND kactionmenutransporttest)
ecm_mark_as_test(kactionmenutransporttest)
target_link_libraries( kactionmenutransporttest Qt::Test KF5::MailTransportAkonadi KF5::WidgetsAddons KF5::I18n KF5::ConfigGui kmailprivate)
......
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
set( kmail_potentialphishingemailjobtest_SRCS potentialphishingemailjobtest.cpp )
add_executable( kmail_potentialphishingemailjobtest ${kmail_potentialphishingemailjobtest_SRCS})
add_executable( kmail_potentialphishingemailjobtest potentialphishingemailjobtest.cpp)
add_test(NAME kmail_potentialphishingemailjobtest COMMAND kmail_potentialphishingemailjobtest)
ecm_mark_as_test(kmail_potentialphishingemailjobtest)
target_link_libraries( kmail_potentialphishingemailjobtest Qt::Test KF5::PimCommon kmailprivate)
set( kmail_potentialphishingdetaildialogtest_SRCS potentialphishingdetaildialogtest.cpp)
add_executable( kmail_potentialphishingdetaildialogtest ${kmail_potentialphishingdetaildialogtest_SRCS})
add_executable( kmail_potentialphishingdetaildialogtest potentialphishingdetaildialogtest.cpp)
add_test(NAME kmail_potentialphishingdetaildialogtest COMMAND kmail_potentialphishingdetaildialogtest)
ecm_mark_as_test(kmail_potentialphishingdetaildialogtest)
target_link_libraries( kmail_potentialphishingdetaildialogtest Qt::Test Qt::Widgets KF5::ConfigCore KF5::I18n KF5::WidgetsAddons kmailprivate)
set( kmail_potentialphishingdetailwidgettest_SRCS potentialphishingdetailwidgettest.cpp)
add_executable( kmail_potentialphishingdetailwidgettest ${kmail_potentialphishingdetailwidgettest_SRCS})
add_executable( kmail_potentialphishingdetailwidgettest potentialphishingdetailwidgettest.cpp)
add_test(NAME kmail_potentialphishingdetailwidgettest COMMAND kmail_potentialphishingdetailwidgettest)
ecm_mark_as_test(kmail_potentialphishingdetailwidgettest)
target_link_libraries( kmail_potentialphishingdetailwidgettest Qt::Test Qt::Widgets KF5::ConfigCore KF5::I18n KF5::WidgetsAddons KF5::PimCommon kmailprivate)
......@@ -22,8 +19,7 @@ target_link_libraries( kmail_potentialphishingdetailwidgettest Qt::Test Qt::Widg
set( kmail_potentialphishingemailwarningtest_SRCS potentialphishingemailwarningtest.cpp)
add_executable( kmail_potentialphishingemailwarningtest ${kmail_potentialphishingemailwarningtest_SRCS})
add_executable( kmail_potentialphishingemailwarningtest potentialphishingemailwarningtest.cpp)
add_test(NAME kmail_potentialphishingemailwarningtest COMMAND kmail_potentialphishingemailwarningtest)
ecm_mark_as_test(kmail_potentialphishingemailwarningtest)
target_link_libraries( kmail_potentialphishingemailwarningtest Qt::Test Qt::Widgets KF5::ConfigCore KF5::I18n KF5::WidgetsAddons kmailprivate)
......
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
set( kmail_incorrectidentityfolderwarningtest_SRCS incorrectidentityfolderwarningtest.cpp )
add_executable( kmail_incorrectidentityfolderwarningtest ${kmail_incorrectidentityfolderwarningtest_SRCS})
add_executable( kmail_incorrectidentityfolderwarningtest incorrectidentityfolderwarningtest.cpp)
add_test(NAME kmail_incorrectidentityfolderwarningtest COMMAND kmail_incorrectidentityfolderwarningtest)
ecm_mark_as_test(kmail_incorrectidentityfolderwarningtest)
target_link_libraries( kmail_incorrectidentityfolderwarningtest Qt::Test KF5::PimCommon KF5::I18n kmailprivate)
set( kmail_externaleditorwarningtest_SRCS externaleditorwarningtest.cpp)
add_executable( kmail_externaleditorwarningtest ${kmail_externaleditorwarningtest_SRCS})
add_executable( kmail_externaleditorwarningtest externaleditorwarningtest.cpp)
add_test(NAME kmail_externaleditorwarningtest COMMAND kmail_externaleditorwarningtest)
ecm_mark_as_test(kmail_externaleditorwarningtest)
target_link_libraries( kmail_externaleditorwarningtest Qt::Test KF5::PimCommon KF5::I18n kmailprivate)
set(vacation_multi_server_SRCS
main.cpp
)
add_executable(vacationmultiservertest ${vacation_multi_server_SRCS} )
add_executable(vacationmultiservertest main.cpp)
target_link_libraries(vacationmultiservertest KF5::KSieveUi KF5::KSieve KF5::I18n KF5::AkonadiCore qt5keychain kmailprivate)
......@@ -8,12 +8,10 @@ add_dependencies(dbustest kmail_xml)
target_link_libraries(dbustest KF5::KIOCore KF5::I18n Qt::DBus)
#####
set(searchdbustest_SRCS searchdbustest.cpp)
add_executable(searchdbustest ${searchdbustest_SRCS})
add_executable(searchdbustest searchdbustest.cpp)
target_link_libraries(searchdbustest Qt::DBus Qt::Widgets KF5::PimCommonAkonadi)
#####
set(searchmailertest_SRCS searchmailertest.cpp)
add_executable(searchmailertest ${searchmailertest_SRCS})
add_executable(searchmailertest searchmailertest.cpp)
target_link_libraries(searchmailertest KF5::MailCommon KF5::Ldap)
Markdown is supported
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