Warning, /games/kreversi/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 "11")
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 KREVERSI_BASE_VERSION once new features are added
0010 set(KREVERSI_BASE_VERSION "2.1")
0011 set(KREVERSI_VERSION "${KREVERSI_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
0012 
0013 project(kreversi VERSION ${KREVERSI_VERSION})
0014 
0015 set (QT_MIN_VERSION "5.15.0")
0016 set (KF5_MIN_VERSION "5.90.0")
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0019 set(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(ECMSetupVersion)
0028 include(FeatureSummary)
0029 
0030 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Qml Quick QuickWidgets Svg Test)
0031 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0032     Config
0033     ConfigWidgets
0034     CoreAddons
0035     Crash
0036     DBusAddons
0037     Declarative
0038     DocTools
0039     I18n
0040     KIO
0041     XmlGui
0042     WidgetsAddons
0043 )
0044 
0045 find_package(KF5KDEGames 7.3.0 REQUIRED)
0046 
0047 add_definitions(
0048     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0049     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0050     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055600
0051     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0052 )
0053 # added by KDE_COMPILERSETTINGS_LEVEL 5.85
0054 remove_definitions(
0055     -DQT_NO_CAST_FROM_BYTEARRAY
0056 )
0057 
0058 add_subdirectory(pics)
0059 add_subdirectory(sounds)
0060 add_subdirectory(icons)
0061 add_subdirectory(doc)
0062 add_subdirectory(src)
0063 
0064 ki18n_install(po)
0065 kdoctools_install(po)
0066 
0067 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)