Warning, /pim/sink/mime/mimetreeparser/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include_directories(../) 0002 include_directories(${CMAKE_CURRENT_BINARY_DIR}) 0003 include_directories(${GPGME_INCLUDE_DIRS}) 0004 0005 set(AUTOMOC ON) 0006 0007 set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}) 0008 add_definitions( -DMAIL_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/../../testdata" ) 0009 0010 include(ECMAddTests) 0011 include(${CMAKE_SOURCE_DIR}/cmake/modules/add_gpg_crypto_test.cmake) 0012 0013 macro(add_mimetreeparser_class_unittest _name _additionalSource) 0014 add_executable(${_name} ${_name}.cpp setupenv.cpp ${_additionalSource}) 0015 target_link_libraries(${_name} 0016 sink_mimetreeparser 0017 Qt5::Test 0018 KF5::Mime 0019 ) 0020 add_test(NAME ${_name} COMMAND $<TARGET_FILE:${_name}>) 0021 endmacro () 0022 0023 macro(add_mimetreeparser_crypto_unittest _name) 0024 add_executable(${_name} ${_name}.cpp setupenv.cpp) 0025 target_link_libraries(${_name} 0026 sink_mimetreeparser 0027 Qt5::Test 0028 KF5::Mime 0029 Gpgme::Gpgme 0030 ) 0031 add_gpg_crypto_test(${_name} mimetreeparser-${_name}) 0032 endmacro () 0033 0034 add_mimetreeparser_crypto_unittest(attachmenttest) 0035 add_mimetreeparser_class_unittest(cryptohelpertest "../cryptohelper.cpp")