Warning, /network/konversation/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required (VERSION 3.16 FATAL_ERROR) 0002 0003 # Release Service version, managed by release script 0004 set (RELEASE_SERVICE_VERSION_MAJOR "23") 0005 set (RELEASE_SERVICE_VERSION_MINOR "07") 0006 set (RELEASE_SERVICE_VERSION_MICRO "70") 0007 set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}") 0008 0009 # Bump KONVERSATION_BASE_VERSION once new features are added 0010 set(KONVERSATION_BASE_VERSION "1.9") 0011 set(KONVERSATION_VERSION "${KONVERSATION_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}") 0012 0013 project(konversation VERSION ${KONVERSATION_VERSION}) 0014 0015 set(QT_MIN_VERSION "5.15.2") 0016 set(KF5_MIN_VERSION "5.91.0") 0017 set(KDE_COMPILERSETTINGS_LEVEL "5.85") 0018 0019 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE) 0020 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) 0021 0022 include(KDEInstallDirs) 0023 include(KDECMakeSettings) 0024 include(KDECompilerSettings NO_POLICY_SCOPE) 0025 0026 include(ECMInstallIcons) 0027 include(ECMSetupVersion) 0028 include(ECMGenerateDBusServiceFile) 0029 include(ECMDeprecationSettings) 0030 include(ECMAddAppIcon) 0031 include(ECMQtDeclareLoggingCategory) 0032 include(CheckIncludeFile) 0033 include(FeatureSummary) 0034 0035 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED Core Multimedia Network Widgets) 0036 if (QT_MAJOR_VERSION STREQUAL "6") 0037 find_package(Qt6Core5Compat ${QT_MIN_VERSION} CONFIG REQUIRED) # QTextCodec 0038 endif() 0039 0040 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED 0041 Archive 0042 Bookmarks 0043 Config 0044 ConfigWidgets 0045 CoreAddons 0046 Crash 0047 DocTools 0048 I18n 0049 IdleTime 0050 NotifyConfig 0051 KIO 0052 Parts 0053 Wallet 0054 WidgetsAddons 0055 DBusAddons 0056 NewStuff 0057 Notifications 0058 WindowSystem 0059 ItemViews 0060 ) 0061 0062 if(NOT WIN32) 0063 find_package(KF5 REQUIRED GlobalAccel) 0064 endif() 0065 set(HAVE_KGLOBALACCEL ${KF5GlobalAccel_FOUND}) 0066 0067 find_package(Qca-qt${QT_MAJOR_VERSION} 2.2.0) 0068 set_package_properties(Qca-qt${QT_MAJOR_VERSION} PROPERTIES DESCRIPTION "Support for encryption" 0069 URL "https://download.kde.org/stable/qca/" 0070 TYPE OPTIONAL) 0071 check_include_file("stropts.h" HAVE_STROPTS_H) 0072 0073 set(HAVE_QCA2 ${Qca-qt${QT_MAJOR_VERSION}_FOUND}) 0074 0075 configure_file(config-konversation.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-konversation.h ) 0076 include_directories(${CMAKE_CURRENT_BINARY_DIR}) 0077 0078 ecm_set_disabled_deprecation_versions( 0079 QT 5.15.2 0080 KF 5.100.0 0081 ) 0082 0083 add_subdirectory(src) 0084 add_subdirectory(data) 0085 add_subdirectory(doc) 0086 0087 if(BUILD_TESTING) 0088 add_subdirectory(tests) 0089 endif() 0090 0091 ki18n_install(po) 0092 kdoctools_install(po) 0093 0094 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)