Warning, /pim/grantlee-editor/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
0002 set(PIM_VERSION "6.0.0")
0003 project(grantlee-editor VERSION ${PIM_VERSION})
0004 set(RELEASE_SERVICE_VERSION "24.02.0")
0005 set(KF_MIN_VERSION "5.246.0")
0006 set(QT_REQUIRED_VERSION "6.6.0")
0007 find_package(ECM ${KF_MIN_VERSION} CONFIG REQUIRED)
0008 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0009 include(ECMInstallIcons)
0010 
0011 
0012 include(ECMSetupVersion)
0013 include(ECMAddTests)
0014 
0015 include(GenerateExportHeader)
0016 include(ECMGenerateHeaders)
0017 
0018 include(FeatureSummary)
0019 include(KDEGitCommitHooks)
0020 include(KDEClangFormat)
0021 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c)
0022 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0023 include(CheckFunctionExists)
0024 
0025 include(KDEInstallDirs)
0026 include(KDECMakeSettings)
0027 include(KDECompilerSettings NO_POLICY_SCOPE)
0028 include(ECMAddAppIcon)
0029 include(ECMQtDeclareLoggingCategory)
0030 include(ECMDeprecationSettings)
0031 
0032 # Do NOT add quote
0033 set(KDEPIM_DEV_VERSION)
0034 
0035 # add an extra space
0036 if(DEFINED KDEPIM_DEV_VERSION)
0037     set(KDEPIM_DEV_VERSION " ${KDEPIM_DEV_VERSION}")
0038 endif()
0039 
0040 set(KDEPIM_VERSION "${PIM_VERSION}${KDEPIM_DEV_VERSION} (${RELEASE_SERVICE_VERSION})")
0041 
0042 set(KDEPIM_LIB_VERSION "${PIM_VERSION}")
0043 set(KDEPIM_LIB_SOVERSION "6")
0044 set(MESSAGELIB_LIB_VERSION "6.0.0")
0045 
0046 set(AKONADI_CONTACT_VERSION "6.0.0")
0047 set(KPIMTEXTEDIT_LIB_VERSION "6.0.0")
0048 set(LIBGRANTLEETHEME_LIB_VERSION "6.0.0")
0049 set(KIMAP_LIB_VERSION "6.0.0")
0050 set(PIMCOMMON_LIB_VERSION "6.0.0")
0051 set(KPIM_MIME_VERSION "6.0.0")
0052 set(KTEXTADDONS_MIN_VERSION "1.5.2")
0053 find_package(Qt6 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets WebEngineWidgets)
0054 
0055 # Find KF6 package
0056 find_package(KF6Crash ${KF_MIN_VERSION} REQUIRED)
0057 find_package(KF6DBusAddons ${KF_MIN_VERSION} CONFIG REQUIRED)
0058 find_package(KF6DocTools ${KF_MIN_VERSION} REQUIRED)
0059 find_package(KF6XmlGui ${KF_MIN_VERSION} CONFIG REQUIRED)
0060 find_package(KF6Archive ${KF_MIN_VERSION} CONFIG REQUIRED)
0061 find_package(KPim6PimCommon ${PIMCOMMON_LIB_VERSION} CONFIG REQUIRED)
0062 find_package(KPim6MessageViewer ${MESSAGELIB_LIB_VERSION} CONFIG REQUIRED)
0063 find_package(KPim6GrantleeTheme ${LIBGRANTLEETHEME_LIB_VERSION} CONFIG REQUIRED)
0064 find_package(KPim6AkonadiContactWidgets ${AKONADI_CONTACT_VERSION} CONFIG REQUIRED)
0065 find_package(KPim6IMAP ${KIMAP_LIB_VERSION} CONFIG REQUIRED)
0066 
0067 # Find KdepimLibs Package
0068 find_package(KPim6Mime ${KPIM_MIME_VERSION} CONFIG REQUIRED)
0069 
0070 find_package(KF6SyntaxHighlighting ${KF_MIN_VERSION} CONFIG REQUIRED)
0071 find_package(KF6TextCustomEditor ${KTEXTADDONS_MIN_VERSION} CONFIG REQUIRED)
0072 
0073 
0074 include_directories(${grantlee-editor_SOURCE_DIR} ${grantlee-editor_BINARY_DIR})
0075 
0076 add_definitions(-DQT_NO_CONTEXTLESS_CONNECT)
0077 ecm_set_disabled_deprecation_versions(QT 6.6.0 KF 5.248.0)
0078 
0079 
0080 
0081 configure_file(grantleeeditor-version.h.in ${CMAKE_CURRENT_BINARY_DIR}/grantleeeditor-version.h @ONLY)
0082 option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" OFF)
0083 
0084 set(COMPILE_WITH_UNITY_CMAKE_SUPPORT OFF)
0085 if (USE_UNITY_CMAKE_SUPPORT)
0086     set(COMPILE_WITH_UNITY_CMAKE_SUPPORT ON)
0087 endif()
0088 add_subdirectory(headerthemeeditor)
0089 add_subdirectory(contactthemeeditor)
0090 add_subdirectory(grantleethemeeditor)
0091 add_subdirectory(contactprintthemeeditor)
0092 
0093 ecm_qt_install_logging_categories(
0094         EXPORT GRANTLEEEDITOR
0095         FILE grantleeditor.categories
0096         DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
0097         )
0098 
0099 add_subdirectory(doc)
0100 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0101 ki18n_install(po)
0102 kdoctools_install(po)
0103 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)