CMakeLists.txt 700 Bytes
Newer Older
Laurent Montel's avatar
Laurent Montel committed
1
# Convenience macro to add unit tests.
2 3 4 5 6 7 8
macro(add_sendlater_agent_test _source )
    set(_test ${_source} ../sendlaterconfiguredialog.cpp ../sendlaterconfigurewidget.cpp)
    ki18n_wrap_ui(_test ../ui/sendlaterconfigurewidget.ui)
    get_filename_component(_name ${_source} NAME_WE)
    ecm_add_test(${_test}
        TEST_NAME ${_name}
        NAME_PREFIX "sendlateragent-"
Laurent Montel's avatar
Laurent Montel committed
9
        LINK_LIBRARIES Qt5::Test KF5::XmlGui KF5::AkonadiCore KF5::SendLater KF5::PimCommon KF5::I18n
10
    )
Laurent Montel's avatar
Laurent Montel committed
11 12
endmacro()

13 14 15 16
add_sendlater_agent_test(sendlaterinfotest.cpp)
add_sendlater_agent_test(sendlaterconfiguredialogtest.cpp)
add_sendlater_agent_test(sendlaterconfigtest.cpp)
add_sendlater_agent_test(sendlaterdialogtest.cpp)