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

0001 # SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003 
0004 add_library(kmailconfirmbeforedeleting)
0005 
0006 target_sources(kmailconfirmbeforedeleting PRIVATE
0007     confirmbeforedeletingdialog.cpp
0008     confirmbeforedeletingwidget.cpp
0009     confirmbeforedeletingmanager.cpp
0010     confirmbeforedeletingrule.cpp
0011     confirmbeforedeletingcreateruledialog.cpp
0012     confirmbeforedeletingcreaterulewidget.cpp
0013     confirmbeforedeletingmessageboxdialog.cpp
0014     confirmbeforedeletingmessageboxwidget.cpp
0015 
0016     confirmbeforedeletingdialog.h
0017     confirmbeforedeletingwidget.h
0018     confirmbeforedeletingmanager.h
0019     confirmbeforedeletingrule.h
0020     confirmbeforedeletingcreateruledialog.h
0021     confirmbeforedeletingcreaterulewidget.h
0022     confirmbeforedeletingmessageboxdialog.h
0023     confirmbeforedeletingmessageboxwidget.h
0024     )
0025 ecm_qt_declare_logging_category(kmailconfirmbeforedeleting HEADER confirmbeforedeletingplugin_debug.h IDENTIFIER KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmbeforedeletingplugin
0026     DESCRIPTION "kdepim-addons (Confirm Before Deleting email)"
0027     OLD_CATEGORY_NAMES log_kmail_confirmbeforedeletingplugin
0028     EXPORT KDEPIMADDONS
0029     )
0030 
0031 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0032     set_target_properties(kmailconfirmbeforedeleting PROPERTIES UNITY_BUILD ON)
0033 endif()
0034 generate_export_header(kmailconfirmbeforedeleting BASE_NAME kmailconfirmbeforedeleting)
0035 target_link_libraries(kmailconfirmbeforedeleting
0036     KPim6::MessageViewer
0037     KF6::I18n
0038 )
0039 
0040 set_target_properties(kmailconfirmbeforedeleting
0041     PROPERTIES OUTPUT_NAME kmailconfirmbeforedeleting VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION}
0042     )
0043 
0044 
0045 install(TARGETS kmailconfirmbeforedeleting ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0046 
0047 
0048 
0049 if(BUILD_TESTING)
0050     add_subdirectory(autotests)
0051 endif()
0052 kcoreaddons_add_plugin(kmail_confirmbeforedeletingplugin INSTALL_NAMESPACE pim6/messageviewer/checkbeforedeleting)
0053 target_sources(kmail_confirmbeforedeletingplugin PRIVATE
0054     confirmbeforedeletinginterface.cpp
0055     confirmbeforedeletingplugin.cpp
0056     confirmbeforedeletinginterface.h
0057     confirmbeforedeletingplugin.h
0058     )
0059 
0060 ecm_qt_declare_logging_category(kmail_confirmbeforedeletingplugin HEADER confirmbeforedeletingplugin_debug.h IDENTIFIER KMAIL_CONFIRMBEFOREDELETING_PLUGIN_LOG CATEGORY_NAME org.kde.pim.kmail_confirmbeforedeletingplugin
0061     DESCRIPTION "kdepim-addons (Confirm Before Deleting email)"
0062     OLD_CATEGORY_NAMES log_kmail_confirmbeforedeletingplugin
0063     EXPORT KDEPIMADDONS
0064     )
0065 
0066 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0067     set_target_properties(kmail_confirmbeforedeletingplugin PROPERTIES UNITY_BUILD ON)
0068 endif()
0069 
0070 target_link_libraries(kmail_confirmbeforedeletingplugin
0071     KPim6::MessageViewer KF6::I18n KPim6::PimCommon KPim6::Libkdepim kmailconfirmbeforedeleting
0072     )