Warning, /pim/kdepim-addons/kaddressbook/importexportplugins/windows-contacts/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 ecm_qt_declare_logging_category(kaddressbook_importexport_windowscontact_debugfile_autotest_SRCS HEADER importexportwindowscontactplugin_debug.h IDENTIFIER IMPORTEXPORTWINDOWSCONTACTPLUGIN_LOG CATEGORY_NAME org.kde.pim.importexportwindowscontactplugin 0005 DESCRIPTION "kdepim-addons (Import/Export Windows Contact plugin)" 0006 EXPORT KDEPIMADDONS 0007 ) 0008 add_definitions(-DWINDOWSCONTACT_DATADIR=\"${CMAKE_CURRENT_SOURCE_DIR}\") 0009 macro(add_windowscontact_unittest _source _additional) 0010 set( _test ${_source} ${_additional} ${kaddressbook_importexport_windowscontact_debugfile_autotest_SRCS}) 0011 get_filename_component(_name ${_source} NAME_WE) 0012 add_executable( ${_name} ${_test} ${_name}.h) 0013 add_test(NAME ${_name} COMMAND ${_name} ) 0014 0015 ecm_mark_as_test(${_name}) 0016 target_link_libraries( ${_name} Qt::Widgets Qt::Test KF6::I18n KF6::WidgetsAddons Qt::Xml KF6::Contacts) 0017 endmacro () 0018 if (NOT WIN32) 0019 add_windowscontact_unittest(importwindowcontacttest.cpp "../importwindowcontact.cpp") 0020 endif()