Warning, /games/lskat/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 LSKAT_BASE_VERSION once new features are added
0010 set(LSKAT_BASE_VERSION "1.50")
0011 
0012 set(LSKAT_VERSION "${LSKAT_BASE_VERSION}.${RELEASE_SERVICE_COMPACT_VERSION}")
0013 
0014 project(lskat VERSION ${LSKAT_VERSION})
0015 
0016 set (QT_MIN_VERSION "5.15.2")
0017 set (KF5_MIN_VERSION "5.90.0")
0018 
0019 find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
0020 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
0021 
0022 include(KDEInstallDirs)
0023 include(KDECMakeSettings)
0024 include(KDECompilerSettings NO_POLICY_SCOPE)
0025 
0026 include(ECMAddAppIcon)
0027 include(ECMInstallIcons)
0028 include(ECMQtDeclareLoggingCategory)
0029 include(ECMSetupVersion)
0030 include(FeatureSummary)
0031 
0032 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Gui Svg Widgets)
0033 
0034 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0035     Config
0036     CoreAddons
0037     Crash
0038     DocTools
0039     GuiAddons
0040     I18n
0041     WidgetsAddons
0042     XmlGui
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=0x055900
0051     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0052 )
0053 
0054 # added by KDE_COMPILERSETTINGS_LEVEL 5.85
0055 remove_definitions(
0056     -DQT_NO_CAST_FROM_ASCII
0057 )
0058 
0059 add_subdirectory(src)
0060 add_subdirectory(grafix)
0061 add_subdirectory(doc)
0062 
0063 ########### install files ###############
0064 install(PROGRAMS org.kde.lskat.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0065 install(FILES org.kde.lskat.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0066 
0067 ecm_install_icons(ICONS
0068     128-apps-lskat.png
0069     16-apps-lskat.png
0070     22-apps-lskat.png
0071     32-apps-lskat.png
0072     48-apps-lskat.png
0073     64-apps-lskat.png
0074     DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor
0075 )
0076 
0077 ki18n_install(po)
0078 kdoctools_install(po)
0079 
0080 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)