Warning, /pim/kdepim-addons/plugins/plasma/pimeventsplugin/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: none 0002 # SPDX-License-Identifier: BSD-3-Clause 0003 0004 macro(add_plasma_pimeventsplugin_test _source _additional) 0005 set(_test ${_source} 0006 ${_additional} 0007 testdataparser.cpp 0008 fakepimdatasource.cpp 0009 ${CMAKE_CURRENT_BINARY_DIR}/../pimeventsplugin_debug.cpp 0010 ) 0011 get_filename_component(_name ${_source} NAME_WE) 0012 add_executable(${_name} ${_test} ${_name}.h) 0013 add_test(NAME ${_name} COMMAND ${_name}) 0014 ecm_mark_as_test(plasma-pimeventsplugin-${_name}) 0015 add_definitions(-DPIMEVENT_DATADIR=\"${CMAKE_CURRENT_SOURCE_DIR}\") 0016 target_link_libraries(${_name} Qt::Core 0017 Qt::Test 0018 KPim6::AkonadiCore 0019 KPim6::AkonadiCalendar 0020 KF6::CalendarCore 0021 KF6::CalendarEvents 0022 KPim6::EventViews 0023 KF6::ConfigCore 0024 ) 0025 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. 0026 ${CMAKE_CURRENT_BINARY_DIR}/.. 0027 ) 0028 endmacro() 0029 if (NOT WIN32) 0030 add_plasma_pimeventsplugin_test(eventdatavisitortest.cpp ../eventdatavisitor.cpp) 0031 add_plasma_pimeventsplugin_test(pimeventsplugintest.cpp "../eventmodel.cpp;../eventdatavisitor.cpp;../pimeventsplugin.cpp;../akonadipimdatasource.cpp;../settingschangenotifier.cpp") 0032 else() 0033 MESSAGE(STATUS "Need to reactivate autotest on windows here") 0034 endif()