Changeset View
Changeset View
Standalone View
Standalone View
plugins/plasma/pimeventsplugin/autotests/CMakeLists.txt
1 | macro(add_plasma_pimeventsplugin_test _source _additional) | 1 | macro(add_plasma_pimeventsplugin_test _source _additional) | ||
---|---|---|---|---|---|
2 | set(_test ${_source} | 2 | set(_test ${_source} | ||
3 | ${_additional} | 3 | ${_additional} | ||
4 | testdataparser.cpp | 4 | testdataparser.cpp | ||
5 | fakepimdatasource.cpp | 5 | fakepimdatasource.cpp | ||
6 | ${CMAKE_CURRENT_BINARY_DIR}/../pimeventsplugin_debug.cpp | 6 | ${CMAKE_CURRENT_BINARY_DIR}/../pimeventsplugin_debug.cpp | ||
7 | ) | 7 | ) | ||
8 | get_filename_component(_name ${_source} NAME_WE) | 8 | get_filename_component(_name ${_source} NAME_WE) | ||
9 | add_executable(${_name} ${_test}) | 9 | add_executable(${_name} ${_test}) | ||
10 | add_test(NAME ${_name} COMMAND ${_name}) | 10 | add_test(NAME ${_name} COMMAND ${_name}) | ||
11 | ecm_mark_as_test(plasma-pimeventsplugin-${_name}) | 11 | ecm_mark_as_test(plasma-pimeventsplugin-${_name}) | ||
12 | add_definitions(-DPIMEVENT_DATADIR=\"${CMAKE_CURRENT_SOURCE_DIR}\") | 12 | add_definitions(-DPIMEVENT_DATADIR=\"${CMAKE_CURRENT_SOURCE_DIR}\") | ||
13 | target_link_libraries(${_name} Qt5::Core | 13 | target_link_libraries(${_name} Qt5::Core | ||
14 | Qt5::DBus | ||||
14 | Qt5::Test | 15 | Qt5::Test | ||
15 | KF5::AkonadiCore | 16 | KF5::AkonadiCore | ||
16 | KF5::AkonadiCalendar | 17 | KF5::AkonadiCalendar | ||
17 | KF5::CalendarCore | 18 | KF5::CalendarCore | ||
18 | KF5::CalendarEvents | 19 | KF5::CalendarEvents | ||
19 | KF5::EventViews | 20 | KF5::EventViews | ||
20 | KF5::ConfigCore | 21 | KF5::ConfigCore | ||
22 | KF5::Service | ||||
21 | ) | 23 | ) | ||
22 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. | 24 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. | ||
23 | ${CMAKE_CURRENT_BINARY_DIR}/.. | 25 | ${CMAKE_CURRENT_BINARY_DIR}/.. | ||
24 | ) | 26 | ) | ||
25 | endmacro() | 27 | endmacro() | ||
26 | 28 | | |||
27 | add_plasma_pimeventsplugin_test(eventdatavisitortest.cpp ../eventdatavisitor.cpp) | 29 | add_plasma_pimeventsplugin_test(eventdatavisitortest.cpp ../eventdatavisitor.cpp) | ||
28 | add_plasma_pimeventsplugin_test(pimeventsplugintest.cpp "../eventmodel.cpp;../eventdatavisitor.cpp;../pimeventsplugin.cpp;../akonadipimdatasource.cpp;../settingschangenotifier.cpp") | 30 | add_plasma_pimeventsplugin_test(pimeventsplugintest.cpp "../eventmodel.cpp;../eventdatavisitor.cpp;../pimeventsplugin.cpp;../akonadipimdatasource.cpp;../settingschangenotifier.cpp") |