Warning, /games/kmahjongg/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 KMAHJONGG_BASE_VERSION once new features are added
0010 set(KMAHJONGG_BASE_VERSION "0.9")
0011 set(KMAHJONGG_VERSION "${KMAHJONGG_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
0012 
0013 project(kmahjongg VERSION ${KMAHJONGG_VERSION})
0014 
0015 set(QT_MIN_VERSION "5.15.2")
0016 set(KF5_MIN_VERSION "5.90.0")
0017 
0018 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0019 
0020 if(ENABLE_CLAZY)
0021     set(CMAKE_CXX_COMPILER clazy)
0022 endif()
0023 
0024 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
0025 
0026 include(KDEInstallDirs)
0027 include(KDECMakeSettings)
0028 include(KDECompilerSettings NO_POLICY_SCOPE)
0029 
0030 include(ECMAddAppIcon)
0031 include(ECMInstallIcons)
0032 include(ECMQtDeclareLoggingCategory)
0033 include(ECMSetupVersion)
0034 include(FeatureSummary)
0035 
0036 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Gui Svg)
0037 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0038     Completion
0039     Config
0040     CoreAddons
0041     Crash
0042     DBusAddons
0043     Declarative
0044     DocTools
0045     NewStuff
0046     XmlGui
0047 )
0048 
0049 find_package(KF5KMahjongglib 5.1.0 REQUIRED)
0050 find_package(KF5KDEGames 7.3.0 REQUIRED)
0051 
0052 add_definitions(
0053     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0054     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0055     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055600
0056     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0057 )
0058 
0059 add_subdirectory(src)
0060 add_subdirectory(icons)
0061 add_subdirectory(layouts)
0062 add_subdirectory(doc)
0063 
0064 ########### install files ###############
0065 
0066 install(PROGRAMS org.kde.kmahjongg.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0067 install(FILES org.kde.kmahjongg.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0068 
0069 ki18n_install(po)
0070 kdoctools_install(po)
0071 
0072 ########### Display Summary ###############
0073 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)