Warning, /pim/kdepim-addons/kmail/editorconvertertextplugins/qtcreator-template/kmaileditorconvertertextplugins/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.5)
0002 
0003 project(%{ProjectName})
0004 
0005 set(KF_MIN_VERSION "5.240.0")
0006 set(QT_REQUIRED_VERSION "6.4.0")
0007 
0008 find_package(ECM ${KF_MIN_VERSION} CONFIG REQUIRED)
0009 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0010 
0011 include(ECMInstallIcons)
0012 include(ECMSetupVersion)
0013 include(ECMAddTests)
0014 include(ECMMarkNonGuiExecutable)
0015 include(GenerateExportHeader)
0016 include(ECMGenerateHeaders)
0017 include(FeatureSummary)
0018 include(CheckFunctionExists)
0019 
0020 include(KDEInstallDirs)
0021 include(KDECMakeSettings)
0022 include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
0023 include(ECMAddAppIcon)
0024 include(ECMQtDeclareLoggingCategory)
0025 
0026 
0027 find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test)
0028 
0029 find_package(KF6I18n ${KF_MIN_VERSION} CONFIG REQUIRED)
0030 find_package(KF6XmlGui ${KF_MIN_VERSION} CONFIG REQUIRED)
0031 find_package(KF6IconThemes ${KF_MIN_VERSION} CONFIG REQUIRED)
0032 find_package(KF6KIO ${KF_MIN_VERSION} CONFIG REQUIRED)
0033 
0034 
0035 set(MESSAGELIB_LIB_VERSION "5.240.0")
0036 
0037 find_package(KPim6MessageComposer ${MESSAGELIB_LIB_VERSION} CONFIG REQUIRED)
0038 
0039 
0040 set(%{ProjectNameUpper}_SRCS
0041     %{ProjectNameLower}plugineditor.cpp
0042     %{ProjectNameLower}plugineditorinterface.cpp
0043 )
0044 
0045 ecm_qt_declare_logging_category(%{ProjectNameUpper}_SRCS HEADER %{ProjectNameLower}editorplugin_debug.h IDENTIFIER %{DebugIdentifierName} CATEGORY_NAME %{DebugCategoryName})
0046 
0047 kcoreaddons_add_plugin(%{ProjectNameLower}editorplugin JSON %{ProjectNameLower}editorplugin.json SOURCES
0048     ${%{ProjectNameUpper}_SRCS} INSTALL_NAMESPACE kmail)
0049 
0050 target_link_libraries(%{ProjectNameLower}editorplugin
0051    KPim6::MessageComposer KF6::XmlGui KF6::I18n
0052 )
0053 
0054