Warning, /games/kmines/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 "22")
0005 set (RELEASE_SERVICE_VERSION_MINOR "08")
0006 set (RELEASE_SERVICE_VERSION_MICRO "1")
0007 set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 # Bump KMINES_BASE_VERSION once new features are added
0010 set(KMINES_BASE_VERSION "4.0")
0011 set(KMINES_VERSION "${KMINES_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
0012 
0013 project(kmines VERSION ${KMINES_VERSION})
0014 
0015 set(QT_MIN_VERSION "5.15.0")
0016 set(KF5_MIN_VERSION "5.89.0")
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
0019 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0020 
0021 include(KDEInstallDirs)
0022 include(KDECMakeSettings)
0023 include(KDECompilerSettings NO_POLICY_SCOPE)
0024 
0025 include(ECMAddAppIcon)
0026 include(ECMInstallIcons)
0027 include(ECMQtDeclareLoggingCategory)
0028 include(ECMSetupVersion)
0029 include(FeatureSummary)
0030 
0031 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets)
0032 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0033     Config
0034     ConfigWidgets
0035     CoreAddons
0036     Crash
0037     DBusAddons
0038     I18n
0039     TextWidgets
0040     WidgetsAddons
0041     XmlGui
0042 )
0043 find_package(KF5DocTools ${KF5_MIN_VERSION})
0044 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0045     "Tools to generate documentation"
0046     TYPE OPTIONAL
0047 )
0048 
0049 find_package(KF5KDEGames 7.3.1 REQUIRED)
0050 
0051 add_definitions(
0052     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0053     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0054     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900
0055     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0056 )
0057 
0058 add_subdirectory(data)
0059 add_subdirectory(themes)
0060 add_subdirectory(src)
0061 
0062 ki18n_install(po)
0063 if(KF5DocTools_FOUND)
0064     add_subdirectory(doc)
0065     kdoctools_install(po)
0066 endif()
0067 
0068 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)