Warning, /pim/kdepim-addons/kmail/plugins/mailmergeplugin/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 add_library(mailmerge)
0004 target_sources(mailmerge PRIVATE
0005     mailmergedialog.cpp
0006     widgets/addressbookwidget.cpp
0007     widgets/attachmentlistwidget.cpp
0008     widgets/csvwidget.cpp
0009     widgets/mailmergewidget.cpp
0010     widgets/selectattachmentdialog.cpp
0011     widgets/mailmergemenu.cpp
0012     widgets/mailmergeutil.cpp
0013     widgets/mailmergepreviewdialog.cpp
0014     widgets/mailmergepreviewwidget.cpp
0015 
0016     mailmergedialog.h
0017     widgets/addressbookwidget.h
0018     widgets/attachmentlistwidget.h
0019     widgets/csvwidget.h
0020     widgets/mailmergewidget.h
0021     widgets/selectattachmentdialog.h
0022     widgets/mailmergemenu.h
0023     widgets/mailmergeutil.h
0024     widgets/mailmergepreviewdialog.h
0025     widgets/mailmergepreviewwidget.h
0026 )
0027 
0028 generate_export_header(mailmerge BASE_NAME mailmerge)
0029 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0030     set_target_properties(mailmerge PROPERTIES UNITY_BUILD ON)
0031 endif()
0032 
0033 target_link_libraries(mailmerge
0034     KF6::I18n
0035     KPim6::MessageComposer
0036     KF6::KIOWidgets
0037     )
0038 
0039 set_target_properties(mailmerge
0040     PROPERTIES OUTPUT_NAME mailmerge VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION}
0041     )
0042 
0043 if(BUILD_TESTING)
0044    add_subdirectory(autotests)
0045    add_subdirectory(tests)
0046 endif()