Warning, /pim/kmail/agents/archivemailagent/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../.. )
0002 
0003 ecm_qt_declare_logging_category(autotest_categories_SRCS HEADER archivemailagent_debug.h IDENTIFIER ARCHIVEMAILAGENT_LOG CATEGORY_NAME org.kde.pim.archivemailagent)
0004 
0005 
0006 # Convenience macro to add unit tests.
0007 macro( archivemail_agent _source)
0008     set( _test ${_source} ../widgets/hourcombobox.cpp
0009         ../archivemailrangewidget.cpp
0010         ../archivemailagentutil.cpp
0011         ../archivemailwidget.cpp
0012         ../addarchivemaildialog.cpp
0013         ../addarchivemailwidget.cpp
0014         ../widgets/formatcombobox.cpp
0015         ../widgets/unitcombobox.cpp ${autotest_categories_SRCS})
0016     ki18n_wrap_ui(_test ../ui/archivemailwidget.ui )
0017     get_filename_component( _name ${_source} NAME_WE )
0018     add_executable( ${_name} ${_test} ${_name}.h)
0019     add_test(NAME ${_name} COMMAND ${_name} )
0020     ecm_mark_as_test(archivemailagent-${_name})
0021     target_link_libraries( ${_name} archivemailagent Qt::Test Qt::Core KPim6::MailCommon KPim6::AkonadiCore KF6::XmlGui KF6::KIOWidgets KF6::I18n)
0022 endmacro()
0023 
0024 archivemail_agent(archivemailinfotest.cpp )
0025 
0026 set( _test2 ${_source} ../widgets/hourcombobox.cpp
0027     ../archivemailrangewidget.cpp
0028     ../archivemailagentutil.cpp
0029     ../archivemailwidget.cpp
0030     ../addarchivemaildialog.cpp
0031     ../addarchivemailwidget.cpp
0032     ../widgets/formatcombobox.cpp
0033     ../widgets/unitcombobox.cpp ${autotest_categories_SRCS})
0034 ki18n_wrap_ui(_test2 ../ui/archivemailwidget.ui )
0035 add_akonadi_isolated_test_advanced(archivemailwidgettest.cpp "${_test2}" "archivemailagent;Qt::Test;Qt::Core;KPim6::MailCommon;KPim6::AkonadiCore;KF6::XmlGui;KF6::KIOWidgets;KF6::I18n")
0036 archivemail_agent(formatcomboboxtest.cpp)
0037 archivemail_agent(unitcomboboxtest.cpp)
0038 archivemail_agent(archivemailrangewidgettest.cpp)
0039 archivemail_agent(archivemailagentutiltest.cpp)