Warning, /games/libkmahjongg/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 "24") 0005 set(RELEASE_SERVICE_VERSION_MINOR "04") 0006 set(RELEASE_SERVICE_VERSION_MICRO "70") 0007 0008 # generate patch level from release service version 0009 set(_micro ${RELEASE_SERVICE_VERSION_MICRO}) 0010 if (_micro LESS "10") 0011 string(PREPEND _micro "0") # pad with 0 0012 endif() 0013 set(RELEASE_SERVICE_BASED_PATCHLEVEL "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${_micro}") 0014 0015 project(libkmahjongg VERSION "6.0.${RELEASE_SERVICE_BASED_PATCHLEVEL}") 0016 0017 set(QT_MIN_VERSION "6.5.0") 0018 set(KF_MIN_VERSION "5.245.0") 0019 0020 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE) 0021 0022 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH}) 0023 0024 include(KDEInstallDirs) 0025 include(KDECMakeSettings) 0026 include(KDECompilerSettings NO_POLICY_SCOPE) 0027 0028 include(ECMDeprecationSettings) 0029 include(ECMSetupVersion) 0030 include(ECMGenerateHeaders) 0031 include(ECMQtDeclareLoggingCategory) 0032 include(ECMGenerateExportHeader) 0033 include(CMakePackageConfigHelpers) 0034 include(FeatureSummary) 0035 0036 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS 0037 Core 0038 Gui 0039 Svg 0040 ) 0041 find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS 0042 Config 0043 ConfigWidgets 0044 CoreAddons 0045 WidgetsAddons 0046 I18n 0047 ) 0048 0049 option(BUILD_SVG_CHECKS "Build SVG rendering checks." OFF) 0050 add_feature_info(BUILD_SVG_CHECKS BUILD_SVG_CHECKS "Build SVG rendering checks.") 0051 0052 if(BUILD_SVG_CHECKS) 0053 find_package(ImageMagick COMPONENTS compare) 0054 set_package_properties(ImageMagick PROPERTIES 0055 TYPE REQUIRED 0056 PURPOSE "For checking cleaned SVG file renderings" 0057 ) 0058 endif() 0059 0060 include(InternalMacros) 0061 0062 ecm_set_disabled_deprecation_versions( 0063 QT 6.5 0064 KF 5.239 0065 ) 0066 0067 add_subdirectory(src) 0068 add_subdirectory(tilesets) 0069 add_subdirectory(backgrounds) 0070 0071 ki18n_install(po) 0072 0073 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)