Warning, /pim/messagelib/mimetreeparser/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-License-Identifier: CC0-1.0 0002 # SPDX-FileCopyrightText: none 0003 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) 0004 add_definitions( -DMAIL_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" ) 0005 0006 include(${CMAKE_SOURCE_DIR}/cmake/modules/kdepim_add_gpg_crypto_test.cmake) 0007 0008 # convenience macro to add qtest unit tests 0009 macro(add_mimetreeparser_unittest _source) 0010 get_filename_component(_name ${_source} NAME_WE) 0011 ecm_add_test(${_source} util.cpp setupenv.cpp 0012 TEST_NAME ${_name} 0013 NAME_PREFIX "mimetreeparser-" 0014 LINK_LIBRARIES KPim6::MimeTreeParser Qt::Test KPim6::Mime Gpgmepp 0015 ) 0016 endmacro () 0017 0018 macro(add_mimetreeparser_class_unittest _source _additionalSource) 0019 get_filename_component(_name ${_source} NAME_WE) 0020 ecm_add_test(${_source} ${_additionalSource} 0021 TEST_NAME ${_name} 0022 NAME_PREFIX "mimetreeparser-" 0023 LINK_LIBRARIES KPim6::MimeTreeParser Qt::Test KPim6::Mime Gpgmepp 0024 ) 0025 endmacro () 0026 0027 macro(add_mimetreeparser_crypto_unittest _source) 0028 set(_test ${_source} util.cpp) 0029 get_filename_component(_name ${_source} NAME_WE) 0030 add_executable( ${_name} ${_test} setupenv.cpp) 0031 ecm_mark_as_test(mimetreeparser-${_name}) 0032 target_link_libraries( ${_name} 0033 KPim6::MimeTreeParser 0034 Qt::Test 0035 KPim6::Mime 0036 QGpgmeQt6 0037 ) 0038 add_gpg_crypto_test(${_name} mimetreeparser-${_name}) 0039 endmacro () 0040 0041 add_mimetreeparser_crypto_unittest(attachmenttest.cpp) 0042 add_mimetreeparser_crypto_unittest(basicobjecttreeparsertest.cpp) 0043 add_mimetreeparser_crypto_unittest(protectedheaderstest.cpp) 0044 add_mimetreeparser_unittest(bodypartformatterbasefactorytest.cpp) 0045 add_mimetreeparser_unittest(nodehelpertest.cpp) 0046 add_mimetreeparser_class_unittest(cryptohelpertest.cpp "../src/cryptohelper.cpp")