akondi-mime5/akonadi-mime5/autotests/messagetests/CMakeLists.txt
Ward from fusion-voyager-3 a8e7e301c1
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 12s
fixx akondi
2024-08-05 17:19:50 +03:00

23 lines
608 B
CMake

# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: BSD-3-Clause
include(ECMMarkAsTest)
macro(ADD_AKONADIMIME_TEST)
foreach(_testName ${ARGN})
add_executable(${_testName} ${_testName}.cpp)
add_test(NAME akonadimime-${_testName} COMMAND ${_testName})
target_link_libraries(${_testName}
KF5::Mime
Qt::Test
KF5::AkonadiCore
KF5::AkonadiMime
)
set_target_properties(${_testName} PROPERTIES COMPILE_FLAGS -DTEST_DATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}/\\"" )
ecm_mark_as_test(${_testName})
endforeach()
endmacro()
add_akonadimime_test(
messagetest
)