Warning, /pim/kdepim-addons/kmail/editorplugins/insertshorturl/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 
0004 add_library(shorturlpluginprivate)
0005 target_sources(shorturlpluginprivate PRIVATE
0006     shorturlengineplugin/shorturlengineinterface.cpp
0007     shorturlengineplugin/shorturlengineplugin.cpp
0008     shorturlengineplugin/shorturlenginepluginmanager.cpp
0009     shorturlengineplugin/shorturlengineinterface.h
0010     shorturlengineplugin/shorturlengineplugin.h
0011     shorturlengineplugin/shorturlenginepluginmanager.h
0012     )
0013 
0014 
0015 generate_export_header(shorturlpluginprivate BASE_NAME shorturl)
0016 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0017     set_target_properties(shorturlpluginprivate PROPERTIES UNITY_BUILD ON)
0018 endif()
0019 
0020 target_link_libraries(shorturlpluginprivate
0021     PRIVATE
0022     Qt::Network KF6::I18n KF6::CoreAddons Qt::Gui
0023     )
0024 
0025 set_target_properties(shorturlpluginprivate
0026     PROPERTIES VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION}
0027     )
0028 
0029 install(TARGETS shorturlpluginprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0030 
0031 
0032 
0033 add_subdirectory(shorturlengineplugin)
0034 kcoreaddons_add_plugin(kmail_insertshorturleditorplugin INSTALL_NAMESPACE pim6/kmail/plugineditor)
0035 
0036 target_sources(kmail_insertshorturleditorplugin PRIVATE
0037     insertshorturlplugineditor.cpp
0038     insertshorturlplugineditorinterface.cpp
0039     insertshorturlconfiguredialog.cpp
0040     insertshorturlconfigurewidget.cpp
0041     insertshorturlplugineditor.h
0042     insertshorturlplugineditorinterface.h
0043     insertshorturlconfiguredialog.h
0044     insertshorturlconfigurewidget.h
0045     ${pimcommon_shorturlplugin_shorturllib_SRCS}
0046     )
0047 ecm_qt_declare_logging_category(kmail_insertshorturleditorplugin HEADER kmail_insertshorturl_debug.h IDENTIFIER KMAIL_INSERTSHORTURL_LOG CATEGORY_NAME org.kde.pim.kmail_insertshorturl
0048     DESCRIPTION "kdepim-addons (kmail insert short url plugin)"
0049     EXPORT KDEPIMADDONS
0050     )
0051 
0052 
0053 target_link_libraries(kmail_insertshorturleditorplugin
0054     KPim6::MessageComposer KF6::XmlGui KF6::I18n shorturlpluginprivate KF6::CoreAddons
0055     )
0056 
0057 if(BUILD_TESTING)
0058     add_subdirectory(autotests)
0059 endif()
0060 
0061