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 project(libkmahjongg VERSION "5.1.0")
0004 
0005 set(QT_MIN_VERSION "5.15.2")
0006 set(KF_MIN_VERSION "5.90.0")
0007 
0008 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
0009 
0010 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})
0011 
0012 include(KDEInstallDirs)
0013 include(KDECMakeSettings)
0014 include(KDECompilerSettings NO_POLICY_SCOPE)
0015 
0016 include(ECMSetupVersion)
0017 include(ECMGenerateHeaders)
0018 include(ECMQtDeclareLoggingCategory)
0019 
0020 include(GenerateExportHeader)
0021 include(CMakePackageConfigHelpers)
0022 include(FeatureSummary)
0023 
0024 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0025     Core
0026     Gui
0027     Svg
0028 )
0029 find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS
0030     CoreAddons
0031     Config
0032     ConfigWidgets
0033     WidgetsAddons
0034     Completion
0035     I18n
0036 )
0037 
0038 include(InternalMacros)
0039 
0040 add_definitions(
0041     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0042     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0043     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055900
0044     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0045 )
0046 
0047 add_subdirectory(src)
0048 add_subdirectory(tilesets)
0049 add_subdirectory(backgrounds)
0050 
0051 ki18n_install(po)
0052 
0053 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)